Skip to content

Commit

Permalink
Merge pull request #1552 from silx-kit/test-h5grove
Browse files Browse the repository at this point in the history
Test `H5GroveApi`
  • Loading branch information
axelboc authored Jan 24, 2024
2 parents 28f6428 + 0f67930 commit 868639b
Show file tree
Hide file tree
Showing 7 changed files with 1,179 additions and 40 deletions.
46 changes: 28 additions & 18 deletions apps/demo/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,22 @@ function Home() {
group (Argonne National Laboratory).
</li>
<li>
<Link to="/h5grove?file=grove.h5">grove.h5</Link> - a file used
to test the <code>H5GroveProvider</code> provider; it contains
datasets with <code>NaN</code>, <code>Infinity</code>, boolean
and complex values, as well as RGB images and 4D stacks.
<Link to="/h5grove?file=grove.h5">grove.h5</Link> - a file
designed to demonstrate the capabilities of{' '}
<code>H5GroveProvider</code>; it contains datasets with{' '}
<code>NaN</code>, <code>Infinity</code>, boolean and complex
values, as well as RGB images and 4D stacks.
</li>
<li>
<Link to="/h5grove?file=links.h5">links.h5</Link> - a file with
external links, soft links and a virtual dataset to test link
resolution.
</li>
<li>
<Link to="/h5grove?file=sample.h5">sample.h5</Link> - the file
used to test <code>H5GroveApi</code> and <code>H5WasmApi</code>{' '}
internally.
</li>
<li>
<Link to="/h5grove?file=tall.h5">tall.h5</Link> - the demo file
of HSDS.
Expand Down Expand Up @@ -144,20 +150,24 @@ function Home() {
silx.org
</a>
:{' '}
{['water_224.h5', 'epics.h5', 'grove.h5', 'tall.h5 '].map(
(filename, index) => (
<Fragment key={filename}>
{index > 0 && ', '}
<Link
to={`/h5wasm?url=${encodeURIComponent(
`https://www.silx.org/pub/h5web/${filename}`,
)}`}
>
{filename}
</Link>
</Fragment>
),
)}
{[
'water_224.h5',
'epics.h5',
'grove.h5',
'sample.h5',
'tall.h5 ',
].map((filename, index) => (
<Fragment key={filename}>
{index > 0 && ', '}
<Link
to={`/h5wasm?url=${encodeURIComponent(
`https://www.silx.org/pub/h5web/${filename}`,
)}`}
>
{filename}
</Link>
</Fragment>
))}
</p>
</section>
<section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
raise RuntimeError("Python 2 is not supported")

BASE_PATH = os.path.dirname(os.path.realpath(sys.argv[0]))
DIST_PATH = os.path.join(BASE_PATH, "dist-h5")
DIST_PATH = os.path.join(BASE_PATH, "dist")
os.makedirs(DIST_PATH, exist_ok=True)

h5py.get_config().track_order = True
Expand Down
7 changes: 6 additions & 1 deletion packages/app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ export { assertEnvVar } from '@h5web/shared/guards';
export { default as DataProvider } from './providers/DataProvider';
export { DataProviderApi } from './providers/api';
export type { ValuesStoreParams } from './providers/models';
export { flattenValue, getNameFromPath, sliceValue } from './providers/utils';
export {
flattenValue,
getNameFromPath,
sliceValue,
getValueOrError,
} from './providers/utils';
export { assertNonNull } from '@h5web/shared/guards';
Loading

0 comments on commit 868639b

Please sign in to comment.