spacetelescope / wss_tools

Python tools for JWST Wavefront Sensing Software
https://wss-tools.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11 stars 10 forks source link

Suppress FITSFixedWarning from newer astropy #90

Closed pllim closed 2 years ago

pllim commented 2 years ago

Description

Not sure when it started but now when you do things like background subtraction with the plugin, you might see a FITSFixedWarning emitted on the terminal (something about datfix and MJDOBS for the test data that I have at hand). If I remember correctly, any terminal output would crash the Java version of WEX (you can confirm with Trey), so here I suppress the warning on the terminal.

@obi-wan76 , if you are not the person to review this, please tag your colleague that should. Thanks!

xref ejeschke/ginga#954

obi-wan76 commented 2 years ago

@nflagey-stsci not sure if you want to take a look at it

pllim commented 2 years ago

I didn't hear any objection and I need to test against astropy v5.1.rc1 here, so I am just going to merge this. We can always revert if you come back to this later and change your mind. Thanks!