Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdfread.CDF globalattsget() return format not expected. attributes format conflict between cdfwrite and cdfread #269

Open
SpaceWalker162 opened this issue Jun 18, 2024 · 0 comments

Comments

@SpaceWalker162
Copy link

SpaceWalker162 commented Jun 18, 2024

cdfread.CDF globalattsget() return {'attribute': [entry0, entry1]} rather than the expected {'attribute': {"0": entry0, "1": entry1}} as discussed in the doc and required by cdfwrite.CDF write_globalatts()

cdfwrite expects var_spec beng a dictionary. Yet cdfread read it to be a class. Of course it is easy to transform the VDRInfo class read by cdfread into a dictionary by VDRInfo.__dict__, but it might be more straightforward to use the same interface.

@SpaceWalker162 SpaceWalker162 changed the title cdfread.CDF globalattsget() return format not expected cdfread.CDF globalattsget() return format not expected. attributes format conflict between cdfwrite and cdfread Jun 18, 2024
@bryan-harter bryan-harter moved this to Backlog in cdflib development Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant