@@ -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 )
0 commit comments