@wernersun @vkuznet @jpk96 @suchismitasarker @esfyee @adas42
Summarizing from a discussion yesterday -
On the FOXDEN dev instance, Valentin has implemented an option to create a "template" record: https://foxden-dev.classe.cornell.edu:8344/tmpl/records. Right now the examples there use the parts of the 3A schema that we currently have users provide on a sample-by-sample basis. The idea is to provide a web UI where users can create temporary, partial records with their sample information prior to data collection. Partial records can be copied and then edited, different versions saved, etc... this addresses the pain point of having to re-enter the same information repeatedly for samples that are similar to one another (e.g. same alloy with different heat treatment, etc)
We came up with a proposed workflow for merging these partial records with BTR-level information and information best populated directly from SPEC at the time of data collection:
- SPEC generates partial BTR-level record (probably via beamline scientist input - this is how 3A currently does it)
- SPEC provides a URL for accessing the web UI for partial, sample-level template records, showing all the templates associated with BTR via this FOXDEN end-point
/tmpl/records?btr=btr-id3
- This URL should also be available before beamtime, so beamline scientists can point users to the web UI.
- User uses this web UI to create partial records from template
- Note: FOXDEN will ensure that template label is not empty string and should be unique
- When it's time to start data collection on a specific sample, user goes to SPEC and calls
newsample SPEC macor, "newfile", or whatever the relevant station macro is, along with the label name of the specific sample's partial record
- SPEC fetches the partial record corresponding to the provided BTE and label name pair, e.g.
/tmpl/records?btr=btr-id3a&label=test-label23
- SPEC macro provides functionality to merge partial user record with the BTR-level record from (1), plus any sample-level information that SPEC is better suited to populate
- at 3A, this would be things like the raw data location
- SPEC submits the final record to FOXDEN.
Valentin requested that the scientists tagged here reach a consensus on whether this is how we want to proceed in the next ~2 weeks - can folks please respond here? This is also a good time/place to raise concerns or things that need clarification.
@wernersun @vkuznet @jpk96 @suchismitasarker @esfyee @adas42
Summarizing from a discussion yesterday -
On the FOXDEN dev instance, Valentin has implemented an option to create a "template" record: https://foxden-dev.classe.cornell.edu:8344/tmpl/records. Right now the examples there use the parts of the 3A schema that we currently have users provide on a sample-by-sample basis. The idea is to provide a web UI where users can create temporary, partial records with their sample information prior to data collection. Partial records can be copied and then edited, different versions saved, etc... this addresses the pain point of having to re-enter the same information repeatedly for samples that are similar to one another (e.g. same alloy with different heat treatment, etc)
We came up with a proposed workflow for merging these partial records with BTR-level information and information best populated directly from SPEC at the time of data collection:
/tmpl/records?btr=btr-id3newsampleSPEC macor, "newfile", or whatever the relevant station macro is, along with the label name of the specific sample's partial record/tmpl/records?btr=btr-id3a&label=test-label23Valentin requested that the scientists tagged here reach a consensus on whether this is how we want to proceed in the next ~2 weeks - can folks please respond here? This is also a good time/place to raise concerns or things that need clarification.