Skip to content

Commit

Permalink
Make validate_observation return the observation
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Jan 25, 2018
1 parent 8375fdf commit 107e63e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sciunit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def validate_observation(self, observation):
Raises an ObservationError if invalid.
"""
assert observation, "Observation is empty."
return observation

required_capabilities = ()
"""A sequence of capabilities that a model must have in order for the
Expand Down

0 comments on commit 107e63e

Please sign in to comment.