PascalLesage / presamples

Package to write, load, manage and verify numerical arrays, called presamples.
BSD 3-Clause "New" or "Revised" License
14 stars 11 forks source link

ParametersMapping fails if presamples package contains matrix data #38

Closed PascalLesage closed 5 years ago

PascalLesage commented 6 years ago

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`.