Skip to content

Commit aab451f

Browse files
committed
Updated data directories type from dict[str, str] to list[Path]; changed default camera value to ''
1 parent cfffcf2 commit aab451f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/murfey/util/config.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ class MachineConfig(BaseModel):
5252
"""
5353
Information about the hardware and software on the instrument machine
5454
"""
55-
camera: Literal["FALCON", "K3_FLIPX", "K3_FLIPY"] = Field(
56-
default="FALCON",
55+
camera: Literal["FALCON", "K3_FLIPX", "K3_FLIPY", ""] = Field(
56+
default="",
5757
description=(
5858
"Name of the camera used by the TEM. This is only relevant for TEMs to "
5959
"determine how the gain reference needs to be processed, e.g., if it has "
6060
"to be binned down from superres or flipped along the x- or y-axis. "
61-
"Options: 'FALCON', 'K3_FLIPX', 'K3_FLIPY'"
61+
"Options: 'FALCON', 'K3_FLIPX', 'K3_FLIPY', ''"
6262
),
6363
# NOTE:
6464
# Eventually need to support Falcon 4, Falcon 4I, K2, K3 (superres)
@@ -128,12 +128,10 @@ class MachineConfig(BaseModel):
128128
"processing."
129129
),
130130
)
131-
data_directories: dict[str, str] = Field(
132-
default={},
131+
data_directories: list[Path] = Field(
132+
default=[],
133133
description=(
134-
"Dictionary of key-value pairs, where the keys are full paths to where "
135-
"data is stored on the client machine, and the value denotes the type "
136-
"of data stored at that path."
134+
"List of full paths to where data is stored on the instrument machine."
137135
),
138136
)
139137
create_directories: dict[str, str] = Field(

0 commit comments

Comments
 (0)