build_cutout: revert to master version
This commit is contained in:
parent
6a3cf12459
commit
a5d0f07fe1
@ -109,11 +109,9 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
cutout_params = snakemake.params.cutouts[snakemake.wildcards.cutout]
|
cutout_params = snakemake.params.cutouts[snakemake.wildcards.cutout]
|
||||||
|
|
||||||
if "time" not in cutout_params:
|
|
||||||
snapshots = pd.date_range(freq="h", **snakemake.params.snapshots)
|
snapshots = pd.date_range(freq="h", **snakemake.params.snapshots)
|
||||||
cutout_params["time"] = [snapshots[0], snapshots[-1]]
|
time = [snapshots[0], snapshots[-1]]
|
||||||
|
cutout_params["time"] = slice(*cutout_params.get("time", time))
|
||||||
cutout_params["time"] = slice(*cutout_params["time"])
|
|
||||||
|
|
||||||
if {"x", "y", "bounds"}.isdisjoint(cutout_params):
|
if {"x", "y", "bounds"}.isdisjoint(cutout_params):
|
||||||
# Determine the bounds from bus regions with a buffer of two grid cells
|
# Determine the bounds from bus regions with a buffer of two grid cells
|
||||||
|
Loading…
Reference in New Issue
Block a user