Skip to content

Commit f0cdac8

Browse files
committed
..
1 parent 04e7b0c commit f0cdac8

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

petab/v2/core.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,21 +1298,14 @@ def from_yaml(
12981298
f"{yaml_config[C.FORMAT_VERSION]}."
12991299
)
13001300

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-
)
13081301
config = ProblemConfig(
13091302
**yaml_config, base_path=base_path, filepath=yaml_file
13101303
)
1304+
13111305
parameter_tables = [
13121306
ParameterTable.from_tsv(f, base_path=base_path)
13131307
for f in config.parameter_files
13141308
]
1315-
13161309
if len(config.model_files or []) > 1:
13171310
# TODO https://github.com/PEtab-dev/libpetab-python/issues/392
13181311
raise NotImplementedError(

0 commit comments

Comments
 (0)