Skip to content

Commit 5690e6b

Browse files
committed
output manually selected for SNAP. this refs #238
1 parent 7764c32 commit 5690e6b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

notebooks/__code/normalization_tof/normalization_tof.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,20 @@ def select_ob_run_numbers(self):
148148
multiple=True)
149149

150150
def select_output_folder(self):
151-
if self.output_folder_widget.value.strip() != "":
152-
self.output_folder = self.output_folder_widget.value
153-
self.output_folder_selected(self.output_folder)
154-
else:
151+
if self.instrument == "SNAP":
155152
self.select_folder(instruction="Select output folder",
156153
start_dir=self.working_dir,
157154
next_function=self.output_folder_selected)
158155

156+
else:
157+
if self.output_folder_widget.value.strip() != "":
158+
self.output_folder = self.output_folder_widget.value
159+
self.output_folder_selected(self.output_folder)
160+
else:
161+
self.select_folder(instruction="Select output folder",
162+
start_dir=self.working_dir,
163+
next_function=self.output_folder_selected)
164+
159165
def settings(self):
160166
label = widgets.Label(value="What to take into account for normalization?")
161167
display(label)

notebooks/normalization_tof.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
"metadata": {
191191
"anaconda-cloud": {},
192192
"kernelspec": {
193-
"display_name": "Python 3",
193+
"display_name": "python310",
194194
"language": "python",
195195
"name": "python3"
196196
},

0 commit comments

Comments
 (0)