Skip to content

Commit d19a40f

Browse files
committed
Make all existing MachineConfig keys fully optional
1 parent 2e669e0 commit d19a40f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/murfey/util/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ class MachineConfig(BaseModel): # type: ignore
3636
# Hardware and software -----------------------------------------------------------
3737
camera: str = "FALCON"
3838
superres: bool = False
39-
calibrations: dict[str, Any]
40-
acquisition_software: list[str]
39+
calibrations: dict[str, Any] = {}
40+
acquisition_software: list[str] = []
4141
software_versions: dict[str, str] = {}
4242
software_settings_output_directories: dict[str, list[str]] = {}
4343
data_required_substrings: dict[str, dict[str, list[str]]] = {}
4444

4545
# Client side directory setup -----------------------------------------------------
46-
data_directories: list[Path]
46+
data_directories: list[Path] = []
4747
create_directories: list[str] = ["atlas"]
4848
analyse_created_directories: list[str] = []
4949
gain_reference_directory: Optional[Path] = None
@@ -58,7 +58,7 @@ class MachineConfig(BaseModel): # type: ignore
5858
data_transfer_enabled: bool = True
5959
rsync_url: str = ""
6060
rsync_module: str = ""
61-
rsync_basepath: Path
61+
rsync_basepath: Optional[Path] = None
6262
allow_removal: bool = False
6363

6464
# Upstream data download setup
@@ -86,7 +86,7 @@ class MachineConfig(BaseModel): # type: ignore
8686
}
8787

8888
# Particle picking setup
89-
default_model: Path
89+
default_model: Optional[Path] = None
9090
picking_model_search_directory: str = "processing"
9191
initial_model_search_directory: str = "processing/initial_model"
9292

0 commit comments

Comments
 (0)