Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions e02/schema/notebook_Schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
"minimum": 0.05,
"title": "The upper threshold",
"type": "number"
},
"maskpath": {
"deafult": null,
"minlength": 0,
"maxlength": 100,
"title": "Mask path",
"type": "string"
}
},
"title": "Calibration of 4D STEM data notebook"
Expand Down
5 changes: 5 additions & 0 deletions e02/schema/notebook_ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"type": "Control",
"label": "The upper threshold",
"scope": "#/properties/thresh_upper"
},
{
"type": "Control",
"label": "The path to the mask, to be applied to the 4DSTEM data",
"scope": "#/properties/maskpath"
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions e02/templates/Notebook_simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ spec:
value: "{{`{{workflow.parameters.sample}}`}}"
- name: timestamp
value: "{{`{{workflow.parameters.timestamp}}`}}"
- name: maskpath
value: "{{`{{workflow.parameters.maskpath}}`}}"
- name: thresh_lower
value: "{{`{{workflow.parameters.thresh_lower}}`}}"
- name: thresh_upper
Expand All @@ -83,10 +85,10 @@ spec:
-p visit "{{`{{ workflow.parameters.visitdir }}`}}" \
-p sample "{{`{{ workflow.parameters.sample }}`}}" \
-p timestamp "{{`{{workflow.parameters.timestamp}}`}}" \
-p maskpath "/home/ruska/29042024_12bitmask2.h5" \
-p maskpath "{{`{{workflow.parameters.maskpath}}`}}" \
-p lower "{{`{{workflow.parameters.thresh_lower}}`}}" \
-p upper "{{`{{workflow.parameters.thresh_upper}}`}}" \
> $OUTPUT/papermill.log 2>&1
> $OUTPUT/papermill.log 2>&1 -k python3

python -m jupyter nbconvert $OUTPUT/Calibrate-notebook.ipynb \
--to html
Expand Down