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
20 changes: 10 additions & 10 deletions laue_portal/components/peakindex_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
dbc.Col(
dbc.Button(
"Update path fields",
id="update-path-fields-btn",
id="peakindex-update-path-fields-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"}, # fixed/min size
Expand All @@ -46,7 +46,7 @@
_stack(
[
dbc.Switch(
id="files switch-switch",
id="peakindex-files switch-switch",
label="All Files",
value=False,
),
Expand Down Expand Up @@ -75,7 +75,7 @@
),
# just as example
html.Datalist(
id="filename-templates",
id="peakindex-filename-templates",
children=[
html.Option(value="Si1_PE2_%d.h5", label="Si1_PE2_%d.h5 (files 1–245)"),
html.Option(value="Si1_Eiger1_%d.h5", label="Si1_Eiger1_%d.h5 (files 3–198)"),
Expand All @@ -91,7 +91,7 @@
dbc.Col(
dbc.Button(
"Update from folder",
id="check-filenames-btn",
id="peakindex-check-filenames-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"},
Expand Down Expand Up @@ -134,7 +134,7 @@
dbc.Col(
dbc.Button(
"Load indices from file",
id="load-file-indices-btn",
id="peakindex-load-file-indices-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"}, # fixed/min size
Expand Down Expand Up @@ -176,7 +176,7 @@
dbc.Col(
dbc.Button(
"Load default",
id="load-default-geo-btn",
id="peakindex-load-default-geo-btn",
color="secondary",
size="md",
style={"minWidth": "120px", "whiteSpace": "nowrap"},
Expand All @@ -186,7 +186,7 @@
dbc.Col(
dbc.Button(
"Load...",
id="load-from-geo-btn",
id="peakindex-load-from-geo-btn",
color="secondary",
size="md",
style={"minWidth": "120px", "whiteSpace": "nowrap"},
Expand All @@ -196,7 +196,7 @@
dbc.Col(
dbc.Button(
"Edit",
id="edit-modify-params-btn",
id="peakindex-edit-modify-params-btn",
color="secondary",
size="md",
style={"minWidth": "120px", "whiteSpace": "nowrap"},
Expand Down Expand Up @@ -315,7 +315,7 @@
dbc.Col(
dbc.Button(
"Load...",
id="load-mask-file-btn",
id="peakindex-load-mask-file-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"}, # fixed/min size
Expand Down Expand Up @@ -398,7 +398,7 @@
dbc.Col(
dbc.Button(
"Load...",
id="load-cryst-file-btn",
id="peakindex-load-cryst-file-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"}, # fixed/min size
Expand Down
16 changes: 8 additions & 8 deletions laue_portal/components/wire_recon_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
dbc.Col(
dbc.Button(
"Update path fields",
id="update-path-fields-btn",
id="wirerecon-update-path-fields-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"}, # fixed/min size
Expand Down Expand Up @@ -51,15 +51,15 @@
_field("Filename", "filenamePrefix",
kwargs={
"placeholder": "e.g. Si_%d.h5 or Si_*%d.h5",
"list": "filename-templates", # link to datalist below
"list": "wirerecon-filename-templates", # link to datalist below
}),
# just as example
html.Datalist(
id="filename-templates",
id="wirerecon-filename-templates",
children=[
html.Option(value="Si1_PE2_%d.h5", label="Si1_PE2_%d.h5 (files 1–245)"),
html.Option(value="Si1_Eiger1_%d.h5", label="Si1_Eiger1_%d.h5 (files 3–198)"),
html.Option(value="Si_*_%d.h5", label="Si_*_%d.h5 (files 1–245)"),
html.Option(value="Si1_*_%d.h5", label="Si1_*_%d.h5 (files 1–245)"),
]
),
]
Expand All @@ -70,7 +70,7 @@
dbc.Col(
dbc.Button(
"Find file names",
id="check-filenames-btn",
id="wirerecon-check-filenames-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"},
Expand All @@ -94,7 +94,7 @@
dbc.Col(
dbc.Button(
"Load indices from file",#"Load file indices as list",
id="load-file-indices-btn",
id="wirerecon-load-file-indices-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"}, # fixed/min size
Expand Down Expand Up @@ -123,7 +123,7 @@
dbc.Col(
dbc.Button(
"Use default",
id="load-default-geo-btn",
id="wirerecon-load-default-geo-btn",
color="secondary",
size="md",
style={"minWidth": "120px", "whiteSpace": "nowrap"},
Expand All @@ -133,7 +133,7 @@
dbc.Col(
dbc.Button(
"Edit current",
id="view-modify-params-btn",
id="wirerecon-view-modify-params-btn",
color="secondary",
size="md",
style={"minWidth": "220px", "whiteSpace": "nowrap"},
Expand Down
Loading