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

Python3 issue or recent fitsio string handling? #7

Open
dstndstn opened this issue Oct 31, 2019 · 0 comments
Open

Python3 issue or recent fitsio string handling? #7

dstndstn opened this issue Oct 31, 2019 · 0 comments

Comments

@dstndstn
Copy link
Member

I'm getting:

unwise_forcedphot failed:
Traceback (most recent call last):
  File "/Users/dstn/legacypipe/py/legacypipe/unwise.py", line 524, in unwise_phot
    W = unwise_forcedphot(wcat, tiles, use_ceres=wise_ceres, **kwargs)
  File "/Users/dstn/legacypipe/py/legacypipe/unwise.py", line 220, in unwise_forcedphot
    modelname='neo5_unwisecat')
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 298, in get_unwise_psf
    rot = rotate_using_rd(model, coadd_id)
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 191, in rotate_using_rd
    astr = _get_astrometry(coadd_id)
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 98, in _get_astrometry
    match, = np.nonzero([c.decode() == coadd_id for c in atlas['COADD_ID']])
  File "/Users/dstn/legacypipe/py/unwise_psf/unwise_psf.py", line 98, in <listcomp>
    match, = np.nonzero([c.decode() == coadd_id for c in atlas['COADD_ID']])
AttributeError: 'numpy.str_' object has no attribute 'decode'

note that the type coming out of the FITS table is a numpy.str, so it doesn't have a decode. This is with the current default "pip install fitsio" version, 1.0.5.

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

No branches or pull requests

1 participant