Skip to content

Commit ae8a9fe

Browse files
committed
Adjusted order of some keys in MachineConfig
1 parent c3be80e commit ae8a9fe

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/murfey/util/config.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ class MachineConfig(BaseModel):
180180
description=("Toggle whether to enable data transfer via rsync."),
181181
# NOTE: Only request input for this code block if data transfer is enabled
182182
)
183+
allow_removal: bool = Field(
184+
default=False, description="Allow original files to be removed after rsync."
185+
)
183186
rsync_basepath: Path = Field(
184187
default=Path("/"),
185188
description=(
@@ -199,9 +202,6 @@ class MachineConfig(BaseModel):
199202
"different sub-folders to save the data to."
200203
),
201204
)
202-
allow_removal: bool = Field(
203-
default=False, description="Allow original files to be removed after rsync."
204-
)
205205

206206
# Related visits and data
207207
upstream_data_directories: list[Path] = Field(
@@ -361,6 +361,14 @@ class MachineConfig(BaseModel):
361361
"""
362362
Server and network-related configurations
363363
"""
364+
# Security-related keys
365+
global_configuration_path: Optional[Path] = Field(
366+
default=None,
367+
description=(
368+
"Full file path to the YAML file containing the configurations for the "
369+
"Murfey server."
370+
),
371+
)
364372
# Network connections
365373
frontend_url: str = Field(
366374
default="http://localhost:3000",
@@ -374,15 +382,6 @@ class MachineConfig(BaseModel):
374382
default="http://localhost:8001",
375383
description="URL to the instrument server.",
376384
)
377-
378-
# Security-related keys
379-
global_configuration_path: Optional[Path] = Field(
380-
default=None,
381-
description=(
382-
"Full file path to the YAML file containing the configurations for the "
383-
"Murfey server."
384-
),
385-
)
386385
auth_url: str = Field(
387386
default="",
388387
description="URL to where users can authenticate their Murfey sessions.",

0 commit comments

Comments
 (0)