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

DM-25807: Suppress known deprecated Filter calls #80

Closed
wants to merge 1 commit into from

Conversation

parejkoj
Copy link
Contributor

@parejkoj parejkoj commented Feb 2, 2021

I did this as part of DM-25807 because the extra warnings from obs_cfht in jointcal were making it harder to debug those tests.

# surpress Filter warnings; we already know this is deprecated
warnings.simplefilter('ignore', category=FutureWarning)
if len(afwImageUtils.Filter.getNames()) >= 2**MegacamMapper._nbit_filter:
raise RuntimeError("You have more filters defined than fit into the %d bits allocated" %
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't use % based formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want to modify the existing code, it just got tabbed-in one level due to the added context manager.

Copy link
Contributor

@natelust natelust Feb 18, 2021

Choose a reason for hiding this comment

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

That's fair, not worth 2 commits, and might be confusing on one

@parejkoj
Copy link
Contributor Author

It looks like @timj already did this on #81 , so there's nothing to merge here.

@parejkoj parejkoj closed this Feb 18, 2021
@parejkoj parejkoj deleted the tickets/DM-25807 branch February 18, 2021 23:14
@timj
Copy link
Member

timj commented Feb 18, 2021

Sorry. I didn't know there was another ticket for it and they were annoying me.

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.

None yet

3 participants