You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NCDataset.from_json() breaks if a variable doesn't have the "type" attribute, but our current spec doesn't say that "type" is required in general, only to ensure reversible transformations. I talked to Dave about this and we decided that ideally we should make it work according to the current spec. But first for my specific use case, I'll probably open a separate issue for missing "type" support in the xrdataset.CFJSONinterface.json_dumps().
Issue occured when inserting global attributes
Could not create variable time
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/source/cf-json/cfjson/ncdataset.py", line 147, in from_json
self.createVariable(var, dico['variables'][var]['type'],
KeyError: 'type'
The text was updated successfully, but these errors were encountered:
aportagain
changed the title
NCDataset.from_json() breaks if a variables doesn't have the "type" attribute
NCDataset.from_json() breaks if a variable doesn't have the "type" attribute
Jan 15, 2018
NCDataset.from_json() breaks if a variable doesn't have the "type" attribute, but our current spec doesn't say that "type" is required in general, only to ensure reversible transformations. I talked to Dave about this and we decided that ideally we should make it work according to the current spec. But first for my specific use case, I'll probably open a separate issue for missing "type" support in the xrdataset.CFJSONinterface.json_dumps().
To reproduce:
returns this error:
The text was updated successfully, but these errors were encountered: