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
clobber was deprecated in astropy 1.3 #23
Comments
@nden Here is an example of what I was talking about: >>> from stwcs.wcsutil import headerlet
No TEAL-based tasks available for this package!
>>> h = headerlet.create_headerlet('j8bt06nyq_flt.fits')
>>> h.tofile('headerlet', clobber=True)
WARNING: AstropyDeprecationWarning: "clobber" was deprecated in version 1.3 and will be removed in a future version. Use argument "overwrite" instead. [astropy.utils.decorators]
>>> # If I try to use overwrite instead of clobber to get rid of warnings:
>>> h.tofile('headerlet', overwrite=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: tofile() got an unexpected keyword argument 'overwrite' This error is due to the fact that we overwrite |
Solved via #24 |
I still see some of these warnings in https://ssb.stsci.edu/steuermann/steuermann.cgi?action=log&name=conda_tests_2017-08-06-10:30:02/nott:conda_testing/dev_tests . For example:
|
fixed in #75 |
The
clobber
parameter inastropy.io.fits
write functions has been deprecated and it has been replaced withoverwrite
: see astropy/astropy#5171.This has caused our code (see, e.g.,
drizzlepac
- spacetelescope/drizzlepac#15) to issue numerous deprecation warnings.The code in
stwcs
needs to be updated so that it usesoverwrite
for versions of astropy >= 1.3 andclobber
for verions < 1.3 (for backward compatibility).The text was updated successfully, but these errors were encountered: