Skip to content

Commit 40c6c69

Browse files
dweindldilpath
andauthored
Update petab/v2/problem.py
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
1 parent aa899a7 commit 40c6c69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

petab/v2/problem.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,8 @@ def get_path(filename):
223223
raise NotImplementedError(
224224
"Support for multiple models is not yet implemented."
225225
)
226-
if not problem0.model_files:
227-
model = None
228-
else:
226+
model = None
227+
if problem0.model_files:
229228
model_id, model_info = next(iter(problem0.model_files.items()))
230229
model = model_factory(
231230
get_path(model_info.location),

0 commit comments

Comments
 (0)