Skip to content

Commit

Permalink
Make validate_observation return the (possible modified) observation
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Jan 25, 2018
1 parent 9670908 commit 8375fdf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sciunit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ def __init__(self, observation, name=None, **params):
self.verbose = params.pop('verbose',1)
self.params.update(params)

self.observation = observation
self.validate_observation(observation)
self.observation = self.validate_observation(observation)

if self.score_type is None or not issubclass(self.score_type, Score):
raise Error("Test %s does not specify a score type." % self.name)
Expand Down

0 comments on commit 8375fdf

Please sign in to comment.