Skip to content

Commit 4ed958f

Browse files
authored
Minor improvements to the XRD-insitu block front end (#1412)
1 parent a5270c4 commit 4ed958f

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed

pydatalab/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ dev-dependencies = [
132132
]
133133

134134
[tool.uv.sources]
135-
datalab-app-plugin-insitu = { git = "https://github.com/datalab-org/datalab-app-plugin-insitu.git", rev = "v0.3.0" }
135+
datalab-app-plugin-insitu = { git = "https://github.com/datalab-org/datalab-app-plugin-insitu.git", rev = "v0.3.1" }
136136

137137
[tool.pytest.ini_options]
138138
filterwarnings = [

pydatalab/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp/src/components/datablocks/XRDInsituBlock.vue

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,53 @@
6161
</div>
6262
</div>
6363
<div class="form-inline mb-2">
64-
<label class="mr-2"><b>Data granularity</b></label>
64+
<label class="mr-2">
65+
<b>Data granularity</b>
66+
<font-awesome-icon
67+
:icon="['fas', 'info-circle']"
68+
class="ml-1"
69+
style="cursor: help"
70+
title="Controls the number of datapoints along the x-axis for the heatmap. For example a value of 2 means every other point is shown. Interpolation is done via max pooling. Higher values show fewer points for faster rendering."
71+
/>
72+
</label>
6573
<input
6674
v-model="data_granularity_buffer"
6775
type="text"
6876
class="form-control mr-3"
6977
style="width: 100px; display: inline-block"
7078
/>
71-
<label class="mr-2"><b>Sample granularity</b></label>
79+
<label class="mr-2">
80+
<b>Sample granularity</b>
81+
<font-awesome-icon
82+
:icon="['fas', 'info-circle']"
83+
class="ml-1"
84+
style="cursor: help"
85+
title="Controls how many samples are displayed in the heatmap. For example a value of 2 means every other sample is plotted. Higher values show fewer samples for faster rendering."
86+
/>
87+
</label>
7288
<input
7389
v-model="sample_granularity_buffer"
7490
type="text"
75-
class="form-control"
91+
class="form-control mr-3"
7692
style="width: 100px; display: inline-block"
7793
/>
94+
<label class="mr-2">
95+
<b>File pattern</b>
96+
<font-awesome-icon
97+
:icon="['fas', 'info-circle']"
98+
class="ml-1"
99+
style="cursor: help"
100+
title="Filter files by pattern (using glob). Use * as wildcard (e.g., *.xy for all .xy files, data_*.txt for files starting with 'data_' and ending with '.txt', or for example '*summed*' for all files containing 'summed'). Leave empty to use all files."
101+
/>
102+
</label>
103+
<input
104+
v-model="glob_str"
105+
type="text"
106+
class="form-control"
107+
style="width: 250px; display: inline-block"
108+
placeholder="e.g., *.xy or data_*.txt"
109+
@keyup.enter="updateBlock"
110+
/>
78111
<button class="btn btn-primary ml-3" @click="onGranularitySubmit">Apply</button>
79112
</div>
80113
<div
@@ -162,6 +195,7 @@ export default {
162195
data_granularity: createComputedSetterForBlockField("data_granularity"),
163196
sample_granularity: createComputedSetterForBlockField("sample_granularity"),
164197
time_series_source: createComputedSetterForBlockField("time_series_source"),
198+
glob_str: createComputedSetterForBlockField("glob_str"),
165199
isEchemMode() {
166200
return this.time_series_source === "echem";
167201
},

0 commit comments

Comments
 (0)