-
Notifications
You must be signed in to change notification settings - Fork 21
Remove attrs #3626
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
Remove attrs #3626
Conversation
MridulS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 173 in feffd89
| 'ignore:sc.DataArray.attrs has been deprecated:scipp.VisibleDeprecationWarning', |
| contents['name'] = group.attrs['name'] | ||
| contents['data'] = _VariableIO.read(group['data']) | ||
| for category in ['coords', 'masks', 'attrs']: | ||
| for category in ['coords', 'masks']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider supporting legacy files and read from the attrs group as unaligned coords? Updating all the files in our tests data would be a fair amount of work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could. But that can also break tests because the data arrays are suddenly different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is easier to fix than recreating a lot of files? Furthermore, some IDS or IS may have Scipp HDF5 files as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I implemented this. Do you have any more comments?
Fixes #3412
I did not test downstream packages. Our nightly at main tests should tell us whether something breaks.