Skip to content

Commit

Permalink
feat: added additional error checking for XPP ODE files for too many …
Browse files Browse the repository at this point in the history
…boundary conditions
  • Loading branch information
jonrkarr committed Feb 27, 2022
1 parent f575dcd commit c051c37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion biosimulators_utils/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.163'
__version__ = '0.1.164'
3 changes: 3 additions & 0 deletions biosimulators_utils/model_lang/xpp/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def validate_model(filename,
elif re.search(r'\berror\b', stdout, re.IGNORECASE):
errors.append(['`{}` is not a valid XPP file.'.format(filename), [[stdout]]])

elif 'Too many boundary conditions' in stdout:
errors.append(['`{}` has too many boundary conditions'])

if not errors:
cmd = ['xppaut', os.path.basename(sanitized_filename), '-qics', '-qpars', '-outfile', var_param_filename, '-quiet', '1']
result = subprocess.run(
Expand Down

0 comments on commit c051c37

Please sign in to comment.