I'm going to make this an issue so it's in a more central location. Here's what happens when the code tries to create the datacube:
ERROR: KeyError: 'object' [astropy.io.fits.hdu.image] Traceback (most recent call last): File "./scripts/imagecube", line 7, in <module> imagecube.imagecube.main() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imagecube-0.0.dev67-py2.7.egg/imagecube/imagecube.py", line 831, in main resample_images(images_with_headers) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imagecube-0.0.dev67-py2.7.egg/imagecube/imagecube.py", line 637, in resample_images create_data_cube(images_with_headers) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imagecube-0.0.dev67-py2.7.egg/imagecube/imagecube.py", line 596, in create_data_cube np.copy(resampled_images), resampled_headers[0], clobber=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/convenience.py", line 402, in writeto hdu = _makehdu(data, header) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/convenience.py", line 756, in _makehdu hdu = _BaseHDU(data, header) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/hdu/image.py", line 796, in __init__ scale_back=scale_back) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/hdu/image.py", line 140, in __init__ self.data = data File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/utils/misc.py", line 266, in __set__ self._fset(obj, val) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/hdu/image.py", line 216, in data self._bitpix = _ImageBaseHDU.ImgCode[data.dtype.name] KeyError: 'object'
I'm going to make this an issue so it's in a more central location. Here's what happens when the code tries to create the datacube:
ERROR: KeyError: 'object' [astropy.io.fits.hdu.image] Traceback (most recent call last): File "./scripts/imagecube", line 7, in <module> imagecube.imagecube.main() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imagecube-0.0.dev67-py2.7.egg/imagecube/imagecube.py", line 831, in main resample_images(images_with_headers) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imagecube-0.0.dev67-py2.7.egg/imagecube/imagecube.py", line 637, in resample_images create_data_cube(images_with_headers) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/imagecube-0.0.dev67-py2.7.egg/imagecube/imagecube.py", line 596, in create_data_cube np.copy(resampled_images), resampled_headers[0], clobber=True) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/convenience.py", line 402, in writeto hdu = _makehdu(data, header) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/convenience.py", line 756, in _makehdu hdu = _BaseHDU(data, header) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/hdu/image.py", line 796, in __init__ scale_back=scale_back) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/hdu/image.py", line 140, in __init__ self.data = data File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/utils/misc.py", line 266, in __set__ self._fset(obj, val) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy-0.3.dev4883-py2.7-macosx-10.6-x86_64.egg/astropy/io/fits/hdu/image.py", line 216, in data self._bitpix = _ImageBaseHDU.ImgCode[data.dtype.name] KeyError: 'object'