Skip to content

Commit 26c474e

Browse files
Adjust fallback options for dcg tag and cryolo model (#732)
1 parent a28e2fb commit 26c474e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/murfey/client/context.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ def ensure_dcg_exists(
131131
key=lambda x: x.stat().st_ctime,
132132
)
133133
if not dcg_images_dirs:
134-
logger.warning(f"Cannot find Images-Disc* in {dcg_search_dir}")
135-
return None
134+
logger.warning(
135+
f"Cannot find Images-Disc* in {dcg_search_dir}, falling back to Images-Disc1"
136+
)
137+
dcg_images_dirs = [Path(dcg_search_dir) / "Images-Disc1"]
136138
dcg_tag = str(dcg_images_dirs[-1])
137139

138140
dcg_data = {

src/murfey/util/processing_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def cryolo_model_path(visit: str, instrument_name: str) -> Path:
5353
)
5454
if possible_models:
5555
return sorted(possible_models, key=lambda x: x.stat().st_ctime)[-1]
56-
return (machine_config.default_model or Path("")).resolve()
56+
return machine_config.default_model or Path("")
5757

5858

5959
class CLEMProcessingParameters(BaseModel):

0 commit comments

Comments
 (0)