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

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

Build:
DEFAULT BRANCH: master
Ran 22 Jan 2018 09:15PM 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

22 Jan 2018 09:01PM UTC coverage: 74.507% (+0.06%) from 74.449%
750.1

push

travis-ci

web-flow
Access model components as attributes (#213)

* Access model components as attributes

Following discussions on PR #213, I've implemented @jmuhlich's
suggestion of allowing access to model components as attributes,
as well as items. There's also a new model.components property, 
which gets all model components. Thus, we can do things like:

    model.monomers.Bax    # Get the Monomer 'Bax'
    model.components.rule_cat  # Get the Rule 'rule_cat'
    model.parameters.kf1  # Get the Parameter 'kf1'
    model.components.kf1       # Ditto

This should help when importing models, and reduce the need for
`alias_model_components()`, which can cause namespace issues,
particularly when we want access to components from more than
one model.

In actual use, one could alias `model.monomers` for easy access,
e.g.

    import model1
    import model2

    m1 = model1.monomers
    m2 = model2.monomers

    m1.Bax  # Bax from model 1
    m2.Bax  # Bax from model 2

* Better AttributeError msg, remove comment

Based on PR #213 feedback from @jmuhlich 

* Implement ComponentSet.__setstate__()

Fixes infinite recursion when unpickling models

* model.comps is now model.components

6199 of 8320 relevant lines covered (74.51%)

0.75 hits per line

Source Files on job 750.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 750
  • Travis Job 750.1
  • 6fd801a2 on github
  • Prev Job for on master (#748.1)
  • Next Job for on master (#751.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