Skip to content

Commit 785b2f2

Browse files
committed
Need to allow extras on machine configuration model
1 parent 53d5268 commit 785b2f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/murfey/util/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
import yaml
1010
from backports.entry_points_selectable import entry_points
11-
from pydantic import BaseModel, BaseSettings
11+
from pydantic import BaseModel, BaseSettings, Extra
1212

1313

14-
class MachineConfig(BaseModel):
14+
class MachineConfig(BaseModel, extra=Extra.allow): # type: ignore
1515
acquisition_software: List[str]
1616
calibrations: Dict[str, Dict[str, Union[dict, float]]]
1717
data_directories: Dict[Path, str]

0 commit comments

Comments
 (0)