mock/<models,utils,values>.ts move to root of shared package: mock-<models,utils,values>.ts
makeMockFile and findMockEntity move to the app package
All the mock metadata utilities remain in the shared package after all (in mock-utils.ts), but the dtype utilities move to hdf5-utils.ts. The dtype utilities are very useful and entirely generic; I will use them in the providers in my next PR. The remaining utilities are really specific to generating mock entities because they do stuff with the paths (to avoid specifying the full path of every entity in makeMockFile); also, they are used here and there in a few tests, like for testing getChildEntity in the shared package, which is why I didn't move them to the app package.
The little cplx() utility also moves to hdf5-utils.ts.
I introduce a new arrayAttr() utility to create array attributes; it accepts an array value and infers the dtype from it.
I've made separate commits, but in summary:
mock/<models,utils,values>.ts
move to root of shared package:mock-<models,utils,values>.ts
makeMockFile
andfindMockEntity
move to the app packagemock-utils.ts
), but the dtype utilities move tohdf5-utils.ts
. The dtype utilities are very useful and entirely generic; I will use them in the providers in my next PR. The remaining utilities are really specific to generating mock entities because they do stuff with the paths (to avoid specifying the full path of every entity inmakeMockFile
); also, they are used here and there in a few tests, like for testinggetChildEntity
in the shared package, which is why I didn't move them to the app package.cplx()
utility also moves tohdf5-utils.ts
.arrayAttr()
utility to create array attributes; it accepts an array value and infers the dtype from it.