Skip to content

Commit 0e9ae55

Browse files
committed
Corrected glob_str behaviour isf user doesn't specify *s
1 parent 538b465 commit 0e9ae55

File tree

1 file changed

+5
-0
lines changed
  • src/datalab_app_plugin_insitu/apps/xrd

1 file changed

+5
-0
lines changed

src/datalab_app_plugin_insitu/apps/xrd/blocks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ def process_and_store_data(self, file_path: str | Path):
9696
start_exp = int(self.data.get("start_exp", self.defaults["start_exp"]))
9797
exclude_exp = self.data.get("exclude_exp", self.defaults["exclude_exp"])
9898
glob_str = self.data.get("glob_str") # Optional: if None, all files are used
99+
100+
# Auto-add wildcards if user doesn't include them
101+
if glob_str and "*" not in glob_str:
102+
glob_str = f"*{glob_str}*"
103+
99104
try:
100105
data = process_local_xrd_data(
101106
file_path=file_path,

0 commit comments

Comments
 (0)