gbrammer / threedhst

3D-HST grism analysis software
11 stars 5 forks source link

catIO.py: NameError: name 'x' is not defined #6

Open JiachuanXu opened 6 years ago

JiachuanXu commented 6 years ago

In line 712, function getitem in class Readfile, returned x is not defined. It is defined in the exec() command, but the interpreter won't recognize it. In python3 people are not supposed to modify locals? Anyway, return locals()['x'] would work.

gbrammer commented 6 years ago

The entire threedhst codebase has become extremely stale; catIO is replaced in large part by astropy.table. If you're looking for Hubble slitless spectroscopy analysis software, I'd strongly recommend switching to https://github.com/gbrammer/grizli/.