Skip to content

Commit d0554ae

Browse files
committed
Replaced 'model_search_directory' with 'picking_model_search_directory'
1 parent 883b761 commit d0554ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/murfey/util/processing_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ def cryolo_model_path(visit: str, instrument_name: str) -> Path:
4040
machine_config = get_machine_config(instrument_name=instrument_name)[
4141
instrument_name
4242
]
43-
if machine_config.model_search_directory:
43+
if machine_config.picking_model_search_directory:
4444
visit_directory = (
4545
machine_config.rsync_basepath / str(datetime.now().year) / visit
4646
)
4747
possible_models = list(
48-
(visit_directory / machine_config.model_search_directory).glob("*.h5")
48+
(visit_directory / machine_config.picking_model_search_directory).glob(
49+
"*.h5"
50+
)
4951
)
5052
if possible_models:
5153
return sorted(possible_models, key=lambda x: x.stat().st_ctime)[-1]

0 commit comments

Comments
 (0)