This fails:
name_lists = [ json.load(open(package.path / obj['names']['filepath'])) for obj in package.resources ]
With:
`KeyError Traceback (most recent call last)
in ()
1 name_lists = [
----> 2 json.load(open(package.path / obj['names']['filepath'])) for obj in package.resources
3 ]
in (.0)
1 name_lists = [
----> 2 json.load(open(package.path / obj['names']['filepath'])) for obj in package.resources
3 ]
KeyError: 'names'`
Because only samples resources have a key `names`.
This fails:
name_lists = [ json.load(open(package.path / obj['names']['filepath'])) for obj in package.resources ]
With:`KeyError Traceback (most recent call last)