Skip to content

Commit 64636c5

Browse files
committed
Minor formatting and typing fixes
1 parent d5120a7 commit 64636c5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/murfey/util/config.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,16 @@ class MachineConfig(BaseModel): # type: ignore
4848
analyse_created_directories: list[str] = []
4949
gain_reference_directory: Optional[Path] = None
5050
eer_fractionation_file_template: str = ""
51-
substrings_blacklist: dict[str, list] = {
51+
52+
# Data transfer setup -------------------------------------------------------------
53+
# General setup
54+
data_transfer_enabled: bool = True
55+
substrings_blacklist: dict[str, list[str]] = {
5256
"directories": [],
5357
"files": [],
5458
}
5559

56-
# Data transfer setup -------------------------------------------------------------
5760
# Rsync setup
58-
data_transfer_enabled: bool = True
5961
rsync_url: str = ""
6062
rsync_module: str = ""
6163
rsync_basepath: Optional[Path] = None
@@ -192,6 +194,7 @@ def _update_nested_values(base: dict[str, Any], new: dict[str, Any]):
192194
# If instrument name is set, skip irrelevant configs
193195
if instrument_name and i != instrument_name:
194196
continue
197+
195198
# Construct instrument config hierarchically
196199
config: dict[str, Any] = {}
197200

@@ -209,6 +212,7 @@ def _update_nested_values(base: dict[str, Any], new: dict[str, Any]):
209212
# Insert instrument-specific values
210213
config = _update_nested_values(config, instrument_config)
211214

215+
# Add to master dictionary
212216
all_machine_configs[i] = MachineConfig(**config)
213217

214218
return all_machine_configs

0 commit comments

Comments
 (0)