Skip to content

Commit

Permalink
Some bugs have been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pica committed Jan 27, 2016
1 parent 867408d commit cd60f9f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions megaradrp/core/recipe.py
Expand Up @@ -143,9 +143,12 @@ def get_parameters(self, rinput):
mbias = hdul[0].data.copy()

parameters = {'biasmap':mbias}

if rinput.master_bpm:
parameters['bpm'] = rinput.master_bpm
with rinput.master_bpm.open() as hdul:
parameters['bpm'] = hdul[0].data.copy()
if rinput.master_dark:
parameters['dark'] = rinput.master_bpm
with rinput.master_dark.open() as hdul:
parameters['dark'] = hdul[0].data.copy()

return parameters

0 comments on commit cd60f9f

Please sign in to comment.