Skip to content

Commit

Permalink
gas pressure
Browse files Browse the repository at this point in the history
  • Loading branch information
rossella.aversa committed Dec 14, 2023
1 parent 2b3d31e commit 4690031
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 21 deletions.
62 changes: 46 additions & 16 deletions docs/sample_interface/sample_schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,20 +982,50 @@ var dataModel = {
},
"sampleVolume":
{
"description": "(Optional) - Relevant for gas, liquid and powder",
"type": "object",
"properties":
{
"value": {"type": "number"},
"unit": {"type": "string"}
}
},
"samplePressure":
"gasPressure":
{
"description": "(Optional) - Only relevant for gas",
"type": "object",
"properties":
{
"value": {"type": "number"},
"unit": {"type": "string"}
"estimate":
{
"type": "string",
"enum":
[
"quantitative",
"qualitative"
]
},
"quantitative":
{
"type": "object",
"properties":
{
"value": {"type": "number"},
"unit": {"type": "string"}
}
},
"qualitative":
{
"type": "string",
"enum":
[
"non applicable",
"vacuum",
"high vacuum",
"ultra high vacuum"
]
}

}
},
"sampleSurfaceRoughness":
Expand All @@ -1009,19 +1039,8 @@ var dataModel = {
"type": "string",
"enum":
[
"qualitative",
"quantitative"
]
},
"qualitative":
{
"type": "string",
"enum":
[
"not applicable",
"rough",
"smooth",
"polished"
"quantitative",
"qualitative"
]
},
"quantitative":
Expand All @@ -1043,6 +1062,17 @@ var dataModel = {
"value": {"type": "number"},
"unit": {"type": "string"}
}
},
"qualitative":
{
"type": "string",
"enum":
[
"not applicable",
"rough",
"smooth",
"polished"
]
}
}
}
Expand Down
24 changes: 19 additions & 5 deletions docs/sample_interface/ui-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,35 @@ var uiSchema = {
]
},
{"title": "Sample Mass", "key": "sampleDescription.sampleMass"},
{"title": "Sample Volume", "key": "sampleDescription.sampleMass"},
{"title": "Sample Pressure", "key": "sampleDescription.samplePressure"},
{"title": "Sample Volume", "key": "sampleDescription.sampleVolume"},
{
"title": "Gas Pressure",
"type": "selectfieldset",
"htmlClass": "myclass",
"titleMap":
{
"qualitative": "Quantitative",
"quantitative": "Qualitative"
},
"items":
[
{"title": "Quantitative", "key": "sampleDescription.gasPressure.quantitative"},
{"title": "Qualitative", "key": "sampleDescription.gasPressure.qualitative"}
]
},
{
"title": "Sample Surface Roughness",
"type": "selectfieldset",
"htmlClass": "myclass",
"titleMap":
{
"qualitative": "Qualitative",
"quantitative": "Quantitative"
"qualitative": "Quantitative",
"quantitative": "Qualitative"
},
"items":
[
{"title": "Qualitative", "key": "sampleDescription.sampleSurfaceRoughness.qualitative"},
{"title": "Quantitative", "key": "sampleDescription.sampleSurfaceRoughness.quantitative"},
{"title": "Qualitative", "key": "sampleDescription.sampleSurfaceRoughness.qualitative"}
]
}
]
Expand Down

0 comments on commit 4690031

Please sign in to comment.