astrochun / MMTtools

A set of Python 2.7 and 3.x codes to use with data from MMT
https://astrochun.github.io/project/mmttools/mmirs/
MIT License
0 stars 5 forks source link

Add debug option for mmirs_pipeline_taskfile #15

Closed astrochun closed 6 years ago

astrochun commented 6 years ago

mmirs_pipeline_taskfile.create() does a glob search to find MMIRS FITS files. The problem here is that for debugging purposes, it is nice to have just the obs_summary.tbl without needing all the FITS files, which are large for longslit or MOS.

astrochun commented 6 years ago

I've added a debug keyword option in mmirs_pipeline_taskfile.create() in commit 205d31e. It checks to see if 'obs_summary.tbl' exists and uses it. It works around the check between the number of FITS files and the size of 'obs_summary.tbl'. This should be helpful in debugging crashes for other people so long as I have the 'obs_summary.tbl'