Replacement for from_df
in version 2022.9.18 and later?
#572
-
I'm updating the esm-intake package and dependencies in the conda environments for MDTF-diagnostics in anticipation of rewriting the preprocessor to use esm intake catalogs for data querying. The preprocessor in the latest package version uses the
self.catalog = intake_esm.core.esm_datastore.from_df( If someone could point me in the right direction, I'd appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@wrongkindofdoctor, apologies for the inconveniences that were caused by the breaking changes. In hindsight, we should have kept the from_dict() method but warned that it would be removed in the newest version. when you get a moment, try the following: obj = {'df' : self.generate_catalog(), 'esmcat': self.dummy_esmcol_spec()}
self.catalog = intake_esm.core.esm_datastore(
obj,
progressbar=False, sep='|'
) |
Beta Was this translation helpful? Give feedback.
-
we're making progress :) it sounds like you are running into the issue that this PR is trying to fix: i'm curious as to what happens when you add the {'esmcat_version': '0.1.0', 'id':
'MDTF_MultirunLocalFileDataSource',
'description': ' ',
'attributes':
[{'column_name': 'sample_dataset', 'vocabulary': ''},
{'column_name': 'frequency', 'vocabulary': ''},
{'column_name': 'variable', 'vocabulary': ''}],
'assets': {'column_name': 'remote_path', 'format': 'netcdf'},
'last_updated': '2020-12-06',
'aggregation_control': {
'variable_column_name': 'variable', 'groupby_attrs': []
}
} |
Beta Was this translation helpful? Give feedback.
-
@andersy005 Thanks! This seems to have resolved the esmcat issue, but I've tripped something else in |
Beta Was this translation helpful? Give feedback.
@wrongkindofdoctor, apologies for the inconveniences that were caused by the breaking changes. In hindsight, we should have kept the from_dict() method but warned that it would be removed in the newest version.
when you get a moment, try the following: