Skip to content

Commit cb5cef1

Browse files
committed
neural_nets to neural_networks
1 parent 317b810 commit cb5cef1

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

petab/v2/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ def from_yaml(
14451445
nn_model_id=nn_id,
14461446
)
14471447
for nn_id, nn_config in (
1448-
config.extensions[C.SCIML].neural_nets or {}
1448+
config.extensions[C.SCIML].neural_networks or {}
14491449
).items()
14501450
]
14511451
if config.extensions and config.extensions[C.SCIML]
@@ -2719,7 +2719,7 @@ class SciMLConfig(BaseModel):
27192719
# Absolute or relative to `base_path`.
27202720
hybridization_files: list[AnyUrl | Path] = []
27212721
#: The neural network IDs and info.
2722-
neural_nets: dict[str, NeuralNetConfig] | None = {}
2722+
neural_networks: dict[str, NeuralNetConfig] | None = {}
27232723

27242724
model_config = ConfigDict(
27252725
validate_assignment=True,
@@ -2840,9 +2840,9 @@ def to_yaml(self, filename: str | Path):
28402840
# convert Paths to strings
28412841
for key in ("array_files", "hybridization_files"):
28422842
d_ext[key] = list(map(str, d_ext[key]))
2843-
for nn in d_ext["neural_nets"]:
2844-
d_ext["neural_nets"][nn][C.MODEL_LOCATION] = str(
2845-
d_ext["neural_nets"][nn][C.MODEL_LOCATION]
2843+
for nn in d_ext["neural_networks"]:
2844+
d_ext["neural_networks"][nn][C.MODEL_LOCATION] = str(
2845+
d_ext["neural_networks"][nn][C.MODEL_LOCATION]
28462846
)
28472847

28482848
write_yaml(data, filename)

tests/v2/test_sciml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def _get_test_problem():
2525
"version": "0.1.0",
2626
"array_files": ["net1_ps.hdf5"],
2727
"hybridization_files": ["hybridizations.tsv"],
28-
"neural_nets": {
28+
"neural_networks": {
2929
"net1": NeuralNetConfig(
3030
location="net1.yaml",
3131
pre_initialization=False,

0 commit comments

Comments
 (0)