Skip to content

Commit

Permalink
Fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
duncaneddy committed Feb 29, 2020
1 parent 05d1bfb commit 2f96bf2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions brahe/data_models/earth_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ class AccessProperties(EOBase):
los_start: list = []
los_end: list = []

@pydantic.validator('los_start', 'los_end', pre=True)
def validate_los(cls, los):
if type(los) == np.ndarray:
return los.tolist()
else:
return los


###########
# Request #
Expand Down

0 comments on commit 2f96bf2

Please sign in to comment.