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

LoLab-VU / pysb / 853 / 2
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 05 Feb 2019 05:51PM UTC
Files 98
Run time 10min
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

25 Jan 2019 07:12PM UTC coverage: 78.557% (+0.1%) from 78.417%
PYVER=3.6

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

7239 of 9215 relevant lines covered (78.56%)

0.79 hits per line

Source Files on job 853.2 (PYVER=3.6)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 825
  • Travis Job 853.2
  • 470945e9 on github
  • Prev Job for PYVER=3.6 on master (#836.2)
  • Next Job for PYVER=3.6 on master (#854.2)
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