• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LoLab-VU / pysb / 853
79%

Build:
DEFAULT BRANCH: master
Ran 05 Feb 2019 05:51PM UTC
Jobs 3
Files 98
Run time 17min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
853

push

travis-ci

alubbock
Small modifications to support BNG's 'stop_if' method (#407)

* Some small modifications to support the 'stop_if' method in BNG, which
allows one to define a logical function that if True will terminate a
simulation. First problem is that BNG creates a new internal function
called '_stop_if' that gets output to the .gdat file. This was causing
problems in PySB since the number of defined Expressions wasn't matching
the number of functions in the .gdat file. Fixed this by explicitly
using the length of 'model.expressions' when reading in the .gdat file.
Second problem is that if 'stop_if' is satisfied at the outset BNG will
immediately quit, only outputting the initial state to the .cdat and
.gdat files. This meant that PySB was reading this in as a single numpy
array, rather than an array of arrays, which was causing a downstream
error. Fixed this by requiring the number of dimensions 'ndmin=2' in the
'numpy.loadtxt' calls. Also added a small test model to the validation
test suite called 'test_stop_if'.

* Fix BNG gdat parsing when constant expressions in model

* Fix test so works consistently across platforms

7307 of 9215 relevant lines covered (79.29%)

2.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 853.1 (PYVER=2.7) 05 Feb 2019 05:52PM UTC 0
78.8
Travis Job 853.1
2 853.2 (PYVER=3.6) 05 Feb 2019 05:51PM UTC 0
78.56
Travis Job 853.2
3 853.3 (PYVER=3.7) 05 Feb 2019 05:58PM UTC 0
78.56
Travis Job 853.3
Source Files on build 853
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #853
  • 470945e9 on github
  • Prev Build on master (#836)
  • Next Build on master (#854)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc