-
Notifications
You must be signed in to change notification settings - Fork 3
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
Ophys Metadata #505
Ophys Metadata #505
Conversation
This is a great first draft! Starting with ImagingInterface metadata
I love the nested table for OpticChannel BTW, we should think of ways to utilize that in other metadata places |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Also on the current auto-generated ScanImage pipeline, I get base-metadata.schema.ts:95 Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'order')
at preprocessMetadataSchema (base-metadata.schema.ts:95:27)
at createForm (GuidedMetadata.js:187:32)
at utils.js:69:73
at Array.map (<anonymous>)
at utils.js:69:45
at Array.map (<anonymous>)
at mapSessions (utils.js:68:10)
at GuidedMetadataPage.mapSessions (Page.js:117:63)
at GuidedMetadataPage.render (GuidedMetadata.js:444:27)
at GuidedMetadataPage.update (lit-element.ts:160:24) on the file metadata page |
Very weird issue possible related. Steps to reproduce
|
Oddly, this example has the |
Hmm this appears to be consistent now, though I'd never seen it before. |
Oh looks like the |
So the core problem here is that JavaScript does not have the ability to maintain floats that are just integers (i.e. When you haven't manually changed the value, there will be nothing sent to Python for that property—allowing the default to take effect. However, manually providing We will probably have to coerce to a float similar to our previous NaN parsing on the Python end. |
I can reproduce this additional behavior though. Likely the displayed default value is being registered as a real value—which is an oversight of mine for these deeply nested tables (as their changes are submitted as the whole table, not granular changes). |
Can you check if this still happens? #505 (comment) I wasn't able to get this to replicate now. Originally, I wasn't able to get anything to render on ScanImage because of the missing items, so that might be why it didn't update the previous render. |
for more information, see https://pre-commit.ci
Ah, apparently not
Right, that all makes sense. Casting would be fine (the default should also be -1.0 in that case anyway); checking the NeuroConv hardcoded schemas though, I don't actually see exposure of the |
I found a couple unrelated bugs while thoroughly testing this; they can be solved in follow-ups I think this is just about ready to merge once the resolution thing is dealt with |
Figured out the root of the |
This PR enables the Ophys Metadata and allow for editing table properties correctly to update the File Metadata structure passed to the server.
Ongoing work on this PR will include the following updates: