We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04e7b0c commit f0cdac8Copy full SHA for f0cdac8
1 file changed
petab/v2/core.py
@@ -1298,21 +1298,14 @@ def from_yaml(
1298
f"{yaml_config[C.FORMAT_VERSION]}."
1299
)
1300
1301
- if len(yaml_config[C.MODEL_FILES]) > 1:
1302
- raise ValueError(
1303
- "petab.v2.Problem.from_yaml() can only be used for "
1304
- "yaml files comprising a single model. "
1305
- "Consider using "
1306
- "petab.v2.CompositeProblem.from_yaml() instead."
1307
- )
1308
config = ProblemConfig(
1309
**yaml_config, base_path=base_path, filepath=yaml_file
1310
+
1311
parameter_tables = [
1312
ParameterTable.from_tsv(f, base_path=base_path)
1313
for f in config.parameter_files
1314
]
1315
-
1316
if len(config.model_files or []) > 1:
1317
# TODO https://github.com/PEtab-dev/libpetab-python/issues/392
1318
raise NotImplementedError(
0 commit comments