Keck-DataReductionPipelines / MosfireDRP

http://keck-datareductionpipelines.github.io/MosfireDRP
10 stars 13 forks source link

AutoDriver fails if handle was run with relative path #65

Closed joshwalawender closed 6 years ago

joshwalawender commented 8 years ago

A call to fname_to_path is missing the options input the handling the case of a non-absolute path.

> mospy AutoDriver
slitmask mode
Generating automatic driver file Driver.py
Traceback (most recent call last):
  File "/sdr1data/mosfiredata/anaconda2/bin/AutoDriver.py", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/jwalawender/git/MosfireDRP/scripts/AutoDriver.py", line 422, in <module>
    mydriver.printMaskAndBand()
  File "/home/jwalawender/git/MosfireDRP/scripts/AutoDriver.py", line 71, in printMaskAndBand
    else: path = os.path.join(fname_to_path(fname[0]), fname[0])
TypeError: fname_to_path() takes exactly 2 arguments (1 given)
joshwalawender commented 6 years ago

Fixed by #97