Skip to content

Commit

Permalink
Merge pull request #104 from NeZanyat/dev
Browse files Browse the repository at this point in the history
Import path included in _class field
  • Loading branch information
rgerkin committed Jul 10, 2019
2 parents 08f2e8a + e7901c0 commit d93c64c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sciunit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,14 @@ def _id(self):
@property
def _class(self):
url = '' if self.url is None else self.url

import_path = '{}.{}'.format(
self.__class__.__module__,
self.__class__.__name__
)

return {'name': self.__class__.__name__,
'import_path': import_path,
'url': url}

@property
Expand Down

0 comments on commit d93c64c

Please sign in to comment.