inital version for experiment YAML template and JSON schema - #460
Conversation
Removed unnecessary required fields from the experiment schema.
|
@MagnusSletten could you review this PR? |
Yeah, that should be fine! I'll look at it later today 👍 |
MagnusSletten
left a comment
There was a problem hiding this comment.
Nice work! Couple of very minor comments, many of them are completely optional to change.
| "PH", | ||
| "PH_METHOD" |
There was a problem hiding this comment.
PH_METHOD is required only if PH is not UNKNOWN
| "properties": { | ||
| "T_RF_HEATING": {"type": "string"}, | ||
| "INSTRUMENT": {"type": "string"}, | ||
| "METHOD": {"type": "string"}, |
There was a problem hiding this comment.
For this field we have a specific list. This is what AI wrote for me:
"METHOD": {
"type": "string",
"description": "Field identifying the NMR method used (formatted as METHOD:SUBMETHOD, e.g., '2H:QE').",
"examples": [
"2H:SP",
"2H:QE",
"CDLF:REDOR",
"CDLF:DIPSHIFT",
"CDLF:recDIPSHIFT",
"PDLF:DROSS",
"PDLF:R18_1^7",
"PDLF:see_comments"
],
"pattern": "^(2H:(SP|QE|see_comments)|CDLF:(REDOR|DIPSHIFT|recDIPSHIFT|see_comments)|PDLF:(DROSS|R[0-9]+(_[0-9]+)?\\^[0-9]+|see_comments))$"
}| "properties": { | ||
| "SOURCE": {"type": "string"}, | ||
| "LAMBDA": {"type": "string"}, | ||
| "QRANGE": {"type": "number"}, |
There was a problem hiding this comment.
qrange is a range, not a number
| "description": "X-ray Specific Metadata", | ||
| "properties": { | ||
| "SOURCE": {"type": "string"}, | ||
| "LAMBDA": {"type": "string"}, |
There was a problem hiding this comment.
This is a number, because it's a wavelength
Updated comments and corrected typos in the experiment template schema.
Changed LAMBDA type from string to number for accuracy.
Updated the experiment schema and modified required fields based on conditions.
comcon1
left a comment
There was a problem hiding this comment.
I found a small comment. Have you tried to run the validation over the real DB?
Co-authored-by: Korbinian Bösl <korbinian.bosl@uib.no>
|
I would merge but it will complain about all the information according to the old schema. e.g.: |
This will partially address #459 .
Adding the schema for experiments.
📚 Documentation preview 📚: https://databank--460.org.readthedocs.build/