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

LoLab-VU / pysb / 719 / 1
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 02 Dec 2017 01:49AM UTC
Files 97
Run time 5s
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

02 Dec 2017 01:35AM UTC coverage: 73.711% (+1.1%) from 72.565%
719.1

push

travis-ci

web-flow
Add `|` reversible rule operator (#309)

* Fix Kappa interface error display on Python3

KaSim/KaSa interface errors do not display when running PySB under
Python 3 (e.g. #300) due to a missing bytes-to-string conversion.
This PR resolves this using `.decode('utf8')` and adds a unit test
to check errors are raised properly with KaSim.

* Add `|` reversible rule operator

PySB currently uses `<>` in reversible rules, but this syntax is not
compatible with Python 3, which removed that operator. The current
workaround is to use `!=`, which is suboptimal.

Following discussions with the PySB core team, I have implemented
`|` as a reversible rule operator, and added a
`PendingDeprecationWarning` to `<>`. The `<>` syntax should become
deprecated then removed at a later date.

Old syntax:

    A(b=None) + A(b=None) <> A(b=1) % A(b=1)

New syntax:

    A(b=None) + A(b=None) | A(b=1) % A(b=1)

* Update pattern matcher with | for reversible rules

5992 of 8129 relevant lines covered (73.71%)

0.74 hits per line

Source Files on job 719.1
  • Tree
  • List 0
  • Changed 66
  • Source Changed 66
  • Coverage Changed 40
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 719
  • Travis Job 719.1
  • 29b7c6c4 on github
  • Prev Job for on master (#713.2)
  • Next Job for on master (#720.1)
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