Skip to content

Commit

Permalink
Merge branch 'develop' into fix-process-tasks-status-reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshamohan committed Jul 23, 2018
2 parents 8a11c4a + 6c4f9b0 commit da8d7b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datacube/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ def __init__(self, **measurement_dict):

super().__init__(measurement_data)

def __getattr__(self, key):
""" Allow access to items as attributes. """
return self[key]

def __repr__(self):
return "Measurement({})".format(super(Measurement, self).__repr__())

Expand Down

0 comments on commit da8d7b8

Please sign in to comment.