Skip to content

Commit c53b099

Browse files
committed
Replaced 'from_file' with 'machine_config_from_file' for greater clarity
1 parent 70e1c68 commit c53b099

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/murfey/util/config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ def __validate_default_model_if_processing_enabled_and_spa_possible__(
427427
return v
428428

429429

430-
def from_file(config_file_path: Path, instrument: str = "") -> Dict[str, MachineConfig]:
430+
def machine_config_from_file(
431+
config_file_path: Path, instrument: str = ""
432+
) -> Dict[str, MachineConfig]:
431433
with open(config_file_path, "r") as config_stream:
432434
config = yaml.safe_load(config_stream)
433435
return {
@@ -522,7 +524,7 @@ def get_machine_config(instrument_name: str = "") -> Dict[str, MachineConfig]:
522524
}
523525
if settings.murfey_machine_configuration:
524526
microscope = instrument_name
525-
machine_config = from_file(
527+
machine_config = machine_config_from_file(
526528
Path(settings.murfey_machine_configuration), microscope
527529
)
528530
return machine_config

0 commit comments

Comments
 (0)