Skip to content

Commit

Permalink
Migrate towards LJSONv3. (#785)
Browse files Browse the repository at this point in the history
* Update the LJSON exporter.

* Update landmark resolver logic to support dicts

Now the resolver/landmark import logic returns dictionaries to
allow for importing LJSON files that map much more closely
to our landmark managers. This means a breaking change but it
is the only way to allow for supporting this. To try and make
the change less painful, the import_landmark_file gains a new
kwarg that allows to choose a single group to return (to more
closely match the old API)
  • Loading branch information
grigorisg9gr authored and patricksnape committed Dec 3, 2017
1 parent 2aea31e commit f79f83c
Show file tree
Hide file tree
Showing 13 changed files with 1,040 additions and 791 deletions.
3 changes: 3 additions & 0 deletions menpo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,9 @@ def view_widget(self):
else:
return view_widget(self)

def __str__(self):
return 'LazyList containing {} items'.format(len(self))


def partial_doc(func, *args, **kwargs):
r"""
Expand Down

0 comments on commit f79f83c

Please sign in to comment.