-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adds mymdc techniques annotation #338
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #338 +/- ##
==========================================
+ Coverage 74.82% 75.35% +0.53%
==========================================
Files 32 32
Lines 4893 4974 +81
==========================================
+ Hits 3661 3748 +87
+ Misses 1232 1226 -6 ☔ View full report in Codecov by Sentry. |
We could also just add a single argument |
How about we offer the singular forms, I don't feel strongly about this, but if there's usually 1 technique, it's easy to miss that you're getting a comma-separated list and write something like |
That's the key question here, and I don't know the answer to it. And since it's new I think it's not used yet (maybe @dallanto has an idea?). |
I think it's not unusual for FXE to do two types of measurement in the same run - they definitely have many proposals with two techniques, e.g. XES & XAS, and I think the aim is generally to do both simultaneously. I found runs in p900463 with techniques recorded, including one 'Test DAQ' run with 2 techniques: r203. So maybe it is worth doing the plural version. In that case I'd go with lists, or a list. I don't have a strong preference between one list-of-dicts vs lists-of-strings. Other than the name & PaNET identifier, I guess you might conceivably want the myMdC ID, and maybe the PaNET URL if you're going to get all semantic web with it. Neither seem especially likely, though I guess myMdC could grow new fields in the future. |
I've changed it for now to return the entire technique information as it is stored in mymdc (list of dicts), that's probably the most versatile and clean option. One can easily iterate over elements and get the information required. |
Hi Thomas & Thomas, "entire information" like all techniques assigned to a given run, e.g. 2 as in the 900463:r203 case? |
LGTM, thanks |
Thanks, I'll merge once ZWOP is updated (@RobertRosca 👀 ) |
So the techniques endpoint isn't needed, only the |
This adds support for requesting the techniques information from Mymdc, once @RobertRosca deploys the path in ZWOP.
A run may have multiple techniques associated to it. Here I made the choice to return a single string with all techniques rather than a list, as I think most case will only contain a unique technique (as a mater of fact, the DAQ currently support applying only one technique to a run), and it is easier to handle on the user side. But we can change that if you disagree.