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
Extenstions to populate metadata 52 #4426
Extenstions to populate metadata 52 #4426
Conversation
This reverts commit 0c3bba6.
Under various circumstances the source CSV may be populated with rows that have no corresponding data in OMERO. Those were hard failures during `Well Name` column resolution without this commit. We are now more graceful at handling these conditions when the source CSV is less than ideally formed.
For a server who's policy restricts the download of plates, populate_roi.py can no longer get access to the results file. For the moment, we're detecting files based on their file ending and permitting the download.
The help for
The square brackets don't look balanced. Is it possible to use the form:
and if so what is expected to be present for the command to succeed? Could the help be improved here? Similarly with:
what is expected? Incidentally,
Is a Plate the expected object type? |
The various query subcommands all look okay with some simple checks but it would be good to have better help for the subcommands mentioned above. |
Pushed fixes. |
c4b2768
to
2bf894d
Compare
2bf894d
to
387c33e
Compare
Weird! I've found some related bug reports, but I haven't yet been able to find a workaround. I'll discuss options with @manics tomorrow. |
Based on discussion with @manics concerning @ximenesuk's concerns in #4426 (comment) and #4426 (comment), I'm disabling the In the interim, if someone wants to make use of the plugin, use:
(Suggestions for alternatives welcome) |
This plugin needs further API design work. Rather than deleting it, this disables it unless an environment variable is set.
The help options for this seem to be clear enough too. The metadata plugin disabling seems to work
I presume the functionality of the plugin has been tested & discussed above and is still a "work in progress"? I don't see any testing or discussion of the "workaround for binary download" as asked for in the description? |
True, thanks for bringing that up, @will-moore. What we ran into was that
|
It looks like the download restriction is only ignoring |
Yup, that was the extension that we were working with with but would fail for other use cases. |
I see that my changes to populate_metadata.py, to support json encoding of column descriptions is included in this PR. I also have those commits in #4482 and @manics and I were discussing whether we want them in the mainline and whether to document them / expose this as an API? (Also no tests for this yet). |
I have modified the
Edit: I removed by accident the Plate column. Both columns are now present and no error. but I woul have assumed that plate column was not required. |
Re: .txt download: see follow-up https://trello.com/c/iwYk0pJi/24-download-restriction-part2 which may need to be moved to 5.2.3. |
cf. my last comment. I decided not to adjust the script to only support "plate name" |
Still some todos. but major improvement so we can certainly have that in and clearly indicate in the history that it is better but not 100% complete cc @hflynn |
Merging this PR. Thanks all |
…ata_52 Extenstions to populate metadata 52
Indirectly confirmed the effect of this PR while reviewing the BinData codegen PR. For our MIAS dataset, an extra set of ROIs is now populated from the measurement file in addition of the ROIs parsed by the Bio-Formats reader. /cc @pwalczysko |
A rebase to 5.2 of @emilroz' port of all
metadata
PRs involvingpopulate_metadata
.This includes:
metadata
andfs ls
which need design thoughtpopulate_metadata.py
incl. a yml config format (Requires PyYAML)populate_roi.py
Description of cherry-picking: