-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support h5grove@2.0.0 and improve dtype parsing #1557
Conversation
packages/app/src/providers/h5grove/__snapshots__/h5grove-api.test.ts.snap
Show resolved
Hide resolved
packages/app/src/providers/h5grove/__snapshots__/h5grove-api.test.ts.snap
Show resolved
Hide resolved
packages/app/src/providers/h5grove/__snapshots__/h5grove-api.test.ts.snap
Outdated
Show resolved
Hide resolved
packages/app/src/providers/h5grove/__snapshots__/h5grove-api.test.ts.snap
Show resolved
Hide resolved
packages/app/src/providers/h5grove/__snapshots__/h5grove-api.test.ts.snap
Show resolved
Hide resolved
packages/app/src/providers/h5grove/__snapshots__/h5grove-api.test.ts.snap
Show resolved
Hide resolved
|
||
export interface H5GroveBaseType { | ||
class: number; | ||
dtype?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that all the info is contained as fields in the object type
, it is worth keeping the dtype
field ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean in our front-end types? Yeah probably not!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept it in the back-end because I thought that some front-ends (that don't care as much about supporting all the types) might find it more convenient to use - e.g. to display the dtype in a tooltip.
f053d9e
to
80acdcc
Compare
@@ -21,7 +21,7 @@ import type { | |||
import { hasErrorMessage, parseEntity } from './utils'; | |||
|
|||
export class H5GroveApi extends DataProviderApi { | |||
/* API compatible with h5grove@1.3.0 */ | |||
/* API compatible with h5grove@2.0.0b2 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version bump (beta for now)
This follows silx-kit/h5grove#85.
I've encountered an issue upgrading the server on Bosquet, so the tests still fail for now.