TypeError: HDUList.writeto() got an unexpected keyword argument 'clobber'
Running PampelMuse ptsort.json PTSORT
leads to a TypeError. I think this is because astropy renamed the argument to 'overwrite': https://docs.astropy.org/en/stable/io/fits/api/hdulists.html#astropy.io.fits.HDUList.writeto
05/25/2023 15:39:30[INFO ]: Saving converted pixtable as PIXTABLE_SORTED.fits ...
Traceback (most recent call last):
File "/home/fgoettge/miniconda3/bin/PampelMuse", line 4, in <module>
__import__('pkg_resources').run_script('PampelMuse==1.0rc2', 'PampelMuse')
File "/home/fgoettge/miniconda3/lib/python3.10/site-packages/pkg_resources/__init__.py", line 672, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/fgoettge/miniconda3/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1472, in run_script
exec(code, namespace, namespace)
File "/home/fgoettge/miniconda3/lib/python3.10/site-packages/PampelMuse-1.0rc2-py3.10.egg/EGG-INFO/scripts/PampelMuse", line 254, in <module>
args.func(config=config)
File "/home/fgoettge/miniconda3/lib/python3.10/site-packages/PampelMuse-1.0rc2-py3.10.egg/pampelmuse/routines/ptsort.py", line 110, in ptsort
pt.writeto(outfilename, clobber=True)
TypeError: HDUList.writeto() got an unexpected keyword argument 'clobber'