Skip to content

Replace conditions with exceptions#9

Open
ChocolateCharlie wants to merge 2 commits intobirtwistlelab:masterfrom
ChocolateCharlie:patch-3
Open

Replace conditions with exceptions#9
ChocolateCharlie wants to merge 2 commits intobirtwistlelab:masterfrom
ChocolateCharlie:patch-3

Conversation

@ChocolateCharlie
Copy link
Contributor

Antimony model loading & convertion

  • Replace conditions with exceptions
  • loadFile returns a long integer indicating the index of the file read and stored, and not necessarily 1. Maybe prefer to test whether it returned -1 instead (check documentation) ?
  • writeSBMLFile returns non-zero on success, and not necessarily 1. Maybe prefer to test whether it returned 0 instead (check documentation)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant