Skip to content

Commit

Permalink
remove | operator from query_catalog (#577)
Browse files Browse the repository at this point in the history
* remove | operator from query_catalog

* remove | operator from query_catalog
  • Loading branch information
jtmims authored May 28, 2024
1 parent 8425c70 commit 183462d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ def query_catalog(self,
# v.log.debug("Read %d mb for %s.", cat_subset.esmcat._df.dtypes.nbytes / (1024 * 1024), v.full_name)
# convert subset catalog to an xarray dataset dict
# and concatenate the result with the final dict
cat_subset_df = cat_dict | cat_subset.to_dataset_dict(
cat_subset_df = cat_subset.to_dataset_dict(
progressbar=False,
xarray_open_kwargs=self.open_dataset_kwargs
)
Expand All @@ -945,7 +945,6 @@ def query_catalog(self,
cat_dict[dict_key] = cat_subset_df[dict_key]
else:
cat_dict[dict_key] = xr.merge([cat_dict[dict_key], cat_subset_df[dict_key]])
# print(cat_dict)
# rename cat_subset case dict keys to case names
cat_dict_rename = self.rename_dataset_keys(cat_dict, case_dict)
return cat_dict_rename
Expand Down

0 comments on commit 183462d

Please sign in to comment.