We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f0002 commit ec0cd91Copy full SHA for ec0cd91
1 file changed
mwrpy/level1/write_lev1_nc.py
@@ -187,7 +187,7 @@ def prepare_data(
187
188
file_list_abscal = (
189
get_file_list(params["path_to_cal"] + "COVARIANCE/", "LOG")
190
- if params["path_to_cal"] is not None
+ if params.get("path_to_cal") is not None
191
else []
192
)
193
for cal in ["ln2", "amb"]:
@@ -302,7 +302,7 @@ def prepare_data(
302
303
elif data_type in ("cov", "his"):
304
rpg_cov = {}
305
- if date is not None and params["path_to_cal"] is not None:
+ if date is not None and params.get("path_to_cal") is not None:
306
file_list_abscal = get_file_list(
307
params["path_to_cal"] + "COVARIANCE/", "LOG"
308
0 commit comments