Closed aakepley closed 5 years ago
Problem here:
https://github.com/GBTSpectroscopy/degas/blob/4c6a6df6669b47316f698b4c984f6869402f84b8/degas/postprocess.py#L109
In [21]: degas.cleansplit('NGC2146.fits') Catalog Match with NGC2146 --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-21-e4f6cef003dd> in <module>() ----> 1 degas.cleansplit('NGC2146.fits') /lustre/cv/users/akepley/degas/reduction/code/degas/postprocess.pyc in cleansplit(filename, galaxy, Vwindow, Vgalaxy, blorder, HanningLoops, edgeMask, weightCut, spectralSetup, spatialSmooth) 107 if (Cube.spectral_axis.max() > 105 * u.GHz and 108 Cube.spectral_axis.max() < 113 * u.GHz): --> 109 warnings.warn("assuming 13CO/C18O spectral setup") 110 spectralSetup = '13CO_C18O' 111 if (Cube.spectral_axis.max() > 82 * u.GHz and NameError: global name 'warnings' is not defined
I'm commenting out the offending code on a branch and running the result to get a rough reduction finished on last night's data.
Problem here:
https://github.com/GBTSpectroscopy/degas/blob/4c6a6df6669b47316f698b4c984f6869402f84b8/degas/postprocess.py#L109