Skip to content

Commit

Permalink
Allow 'tagger'=None in Corrector constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Jun 14, 2016
1 parent 8b00eff commit d868d19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion numina/flow/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ class Corrector(Node):

def __init__(self, datamodel, tagger, dtype='float32'):
super(Corrector, self).__init__()
self.tagger = tagger
if tagger is None:
self.tagger = NoTag()
else:
self.tagger = tagger
if not datamodel:
self.datamodel = SimpleDataModel()
else:
Expand Down

0 comments on commit d868d19

Please sign in to comment.