-
Notifications
You must be signed in to change notification settings - Fork 16
Delete rnd #58
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
base: master
Are you sure you want to change the base?
Delete rnd #58
Conversation
|
|
@mtbc @sbesson But this does not what the script is doing. It does not iterate through rnd from many datasets specified by a name or ID. |
|
True, if you want to do it by name you'd have to first find the IDs like, |
|
As discussed with @mtbc in the office, we have to pass the IDs find via the CLI into another CLI command. This still leads to a bash script, which is much less user friendly and assumes typing a one-liner on the fly, also remembering the syntax of the command, or re-writing the looping here using bash. |
|
I'm not exactly following, but in general, yes, I'm all for adding more CLI commands if they make our life simpler. |
|
@pwalczysko the CLI examples are very useful during training. I don't remember any discussion about having only python scripts |
|
As requested, the last commit re-writes the whole logic in a bash script. |
|
The biggest problem with using CLI in our setup is that an output of a previous command (typically a row of IDs, typically from hql) does not bind smoothly into intput of another command (delete in this case). Do we have a card for this ? (@mtbc @joshmoore ) |
|
@pwalczysko : not that I know of. Around the time that That being said, looking at some of your scripts, they are quite complicated. Unless you have some clear low-hanging fruit, rewriting them in Python might be the cleanest solution. |
|
Like Petr said, a big improvement would be if just the hql output would be more OMEROish for a start. You can neither use the 'plain' nor the 'csv' style output as input for another command, hence all the complicated parsing steps. I can have a look into this actually. Btw, another great improvement would be to generally accept the "Type:Id,Id,Id,..." syntax ( https://github.com/openmicroscopy/openmicroscopy/blob/bff72cb83888ef3b54540bd29973e18885a09ffa/components/tools/OmeroPy/src/omero/cli.py#L1694 ) for all commands. But at the moment only the 'GraphControl' commands do that. |
|
Mmm, similarly I ran into a lack of GraphControl for https://trello.com/c/4UKcyaed/77-chmod-needs-dry-run. |
👍
I would think we would write separate |
|
Reading this again, I wonder:
Do you mean by just having a list of
i.e. ignore everything after the first comma when an entry starts with |
|
Yes, additionally to the csv, plain, etc. output, |
|
See also https://trello.com/c/XaHPIQy4/444-rfe-cli-should-digest-long-lists. |
This adds a script which deletes all the rnd settings on images from specified dataset(s).
The main goal is to be able to clean the rendering settings of other users as they are viewing each others and trainer-1's images on outreach. There is quite a few settings thumbs in the Preview panel on siRNA-HeLa dataset.
Although the script deletes ALL the rnd settings on each relevant image, the rnd settings are regenerated immediately when the owner (or other person) is viewing the images the first time after this script has been run. Hope this is an acceptable tactics.
cc @jburel @will-moore
cc @jrswedlow (regards the prep for LA outreach -> follow-up of https://openmicroscopy.slack.com/archives/C1PJHN2D7/p1550422112083100)