Skip to content

Commit 8f465d9

Browse files
committed
Improved naming. this refs #240
1 parent f043e84 commit 8f465d9

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

notebooks/__code/combine_images.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def select_output_folder(self):
4646
self.output_folder_widget = fileselector.FileSelectorPanel(instruction='select where to create the ' + \
4747
'combined image ...',
4848
start_dir=self.working_dir,
49+
newdir_toolbar_button=True,
4950
type='directory')
5051

5152
self.output_folder_widget.show()
@@ -70,11 +71,24 @@ def define_output_filename(self):
7071
merging_algo = self.__get_formated_merging_algo_name()
7172
[default_new_name, ext] = self.__create_merged_file_name(list_files_names=short_list_files)
7273

73-
top_label = widgets.Label("You have the option to change the default output file name")
74+
display(widgets.HTML(value="<hr>"))
75+
76+
top_label = widgets.Label("Define the new output file name",
77+
layout=widgets.Layout(width='100%'))
7478

75-
box = widgets.HBox([widgets.Label("Default File Name",
79+
folder_name = os.path.dirname(list_files[0])
80+
81+
box1 = widgets.HBox([widgets.Label("Original folder name",
82+
layout=widgets.Layout(width='20%')),
83+
widgets.Label(f"{folder_name}",
84+
layout=widgets.Layout(width='80%')),
85+
])
86+
display(box1)
87+
88+
box = widgets.HBox([widgets.Label("File Name",
7689
layout=widgets.Layout(width='20%')),
77-
widgets.Text(default_new_name,
90+
widgets.Text("",
91+
placeholder="Your file name here",
7892
layout=widgets.Layout(width='60%')),
7993
widgets.Label("_{}{}".format(merging_algo, ext),
8094
layout=widgets.Layout(width='20%')),

notebooks/combine_all_images_selected.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
"metadata": {
170170
"anaconda-cloud": {},
171171
"kernelspec": {
172-
"display_name": "Python 3 (ipykernel)",
172+
"display_name": "python310",
173173
"language": "python",
174174
"name": "python3"
175175
},
@@ -183,7 +183,7 @@
183183
"name": "python",
184184
"nbconvert_exporter": "python",
185185
"pygments_lexer": "ipython3",
186-
"version": "3.8.13"
186+
"version": "3.10.8"
187187
},
188188
"toc": {
189189
"colors": {

0 commit comments

Comments
 (0)