Skip to content

Commit 3611d71

Browse files
measrainseyglatterf42
authored andcommitted
Remove if statement that has the same selection for each condition
1 parent 5e88e49 commit 3611d71

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

message_ix_models/model/water/data/pre_processing/hydro_agg_raster.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,7 @@ def process_raster(user, isimip, cl, scen, var, data):
161161
hydro_data = path_water + f"*{cl}*{scen}*{var}*monthly*.nc"
162162

163163
files = glob.glob(hydro_data)
164-
if var != "qr":
165-
# Open hydrological data as a combined dataset
166-
da = xr.open_mfdataset(files)
167-
else:
168-
# Open hydrological data as a combined dataset
169-
da = xr.open_mfdataset(files)
164+
da = xr.open_mfdataset(files)
170165

171166
if monthlyscale:
172167
if var == "dis":

0 commit comments

Comments
 (0)