Skip to content

Commit

Permalink
Add ipython tab-completion support for fields
Browse files Browse the repository at this point in the history
eg. product.metadata.<tab>
  • Loading branch information
jeremyh committed Mar 23, 2017
1 parent 65e0c44 commit 7ed4371
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datacube/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ def system_fields(self):
continue
return fields

def __dir__(self):
return self.fields.keys()


def import_function(func_ref):
"""
Expand Down

0 comments on commit 7ed4371

Please sign in to comment.