Repository navigation
Review StreamResource and StreamDatum Schemas - #301
Merged
Merged
Conversation
genematx
marked this pull request as ready for review
April 2, 2024 15:08
DiamondJoseph
left a comment
Contributor
There was a problem hiding this comment.
As discussed in #296 I'm happy with the changes to go in, and as discussed with @coretl just now, I'm happy for this to go in so long as ophyd-async is pinned to <2.0 until after our experiment in June, then I'll adjust our deployed services. The implementation looks correct, just one repeated nit to make the history of changes a little clearer.
Co-authored-by: DiamondJoseph <[email protected]>
Co-authored-by: DiamondJoseph <[email protected]>
Co-authored-by: DiamondJoseph <[email protected]>
DiamondJoseph
approved these changes
Apr 2, 2024
danielballan
reviewed
Apr 2, 2024
danielballan
left a comment
Member
There was a problem hiding this comment.
I left some minor edits. Then I think this is good to go in.
Co-authored-by: Dan Allan <[email protected]>
Co-authored-by: Dan Allan <[email protected]>
Co-authored-by: Dan Allan <[email protected]>
danielballan
approved these changes
Apr 2, 2024
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review the schemas of Stream Resource and Stream Datum documents to facilitate storage and client access.
Description
path_semanticsfromStream ResourceandStream Datumschemas.rootandresource_pathwithuri. It may be a path on the local filesystem,file://localhost/{path}, a path on a shared filesystemfile://{host}/{path}, to be remapped at read time via local mount config, or a non-file-based resource likes3://....spectomimetypeand use MIME type values likeapplication/x-hdf5. It is expected that any information about options like SWMR will be passed in theresource_kwargs(parameters, see below).resource_kwargstoparameters. The wordresource_is a bit redundant here, and the wordkwargsis a Python-ism.Motivation and Context
This PR is based on the discussion and agreed recommendations made in Issue #296. The main motivation is to simplify and future-proof the access to data by consumers and clients, such as Tiled.
How Has This Been Tested?
Using existing tests (with renamed/replaced variables).