Skip to content

Commit

Permalink
Remove if statement that has the same selection for each condition
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey committed Sep 2, 2024
1 parent e9024a0 commit db30fec
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,7 @@ def process_raster(user, isimip, cl, scen, var, data):
hydro_data = path_water + f"*{cl}*{scen}*{var}*monthly*.nc"

files = glob.glob(hydro_data)
if var != "qr":
# Open hydrological data as a combined dataset
da = xr.open_mfdataset(files)
else:
# Open hydrological data as a combined dataset
da = xr.open_mfdataset(files)
da = xr.open_mfdataset(files)

if monthlyscale:
if var == "dis":
Expand Down

0 comments on commit db30fec

Please sign in to comment.