Skip to content

Conversation

@jl-wynen
Copy link
Member

Fixes #3412

I did not test downstream packages. Our nightly at main tests should tell us whether something breaks.

Copy link
Member

@MridulS MridulS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'ignore:sc.DataArray.attrs has been deprecated:scipp.VisibleDeprecationWarning',
can be removed.

contents['name'] = group.attrs['name']
contents['data'] = _VariableIO.read(group['data'])
for category in ['coords', 'masks', 'attrs']:
for category in ['coords', 'masks']:
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@SimonHeybrock SimonHeybrock Jan 8, 2025

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.

Copy link
Member Author

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?

@jl-wynen jl-wynen merged commit 28b8a6a into main Jan 10, 2025
4 checks passed
@jl-wynen jl-wynen deleted the remove-attrs branch January 10, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Remove attrs and meta (in or after v24.12.0)

4 participants