Skip to content

Conversation

@SimonHeybrock
Copy link
Member

For simplicity this omits adding warnings to construction of DataArray with an attrs argument. Part of #3166.

@SimonHeybrock SimonHeybrock mentioned this pull request Aug 30, 2023
11 tasks

def _warn_attr_removal():
warnings.warn(
"sc.DataArray.attrs has been deprecated and will be removed in Scipp v24.12.0. "
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to make the period this long? I didn't think we would go longer than 1y.

Copy link
Member Author

Choose a reason for hiding this comment

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

By the time we released this... and 2023 is almost over anyway. Do you see any harm in having it this long?

Copy link
Member

Choose a reason for hiding this comment

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

Not directly. It's just nice to get these things out of the way to simplify the code.

Base automatically changed from cleanup-warnings-filter to main August 31, 2023 05:07
@SimonHeybrock SimonHeybrock merged commit ccd8320 into main Aug 31, 2023
@SimonHeybrock SimonHeybrock deleted the deprecate-dataarray-attrs branch August 31, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants