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

LoLab-VU / pysb / 711
75%
master: 79%

Build:
Build:
LAST BUILD BRANCH: gpu_ssa
DEFAULT BRANCH: master
Ran 16 Nov 2017 07:37PM UTC
Jobs 2
Files 94
Run time 40s
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
711

push

travis-ci

alubbock
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.comps property, which
gets all model components. Thus, we can do things like:

    model.monomers.Bax    # Get the Monomer 'Bax'
    model.comps.rule_cat  # Get the Rule 'rule_cat'
    model.parameters.kf1  # Get the Parameter 'kf1'
    model.comps.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

6239 of 8224 relevant lines covered (75.86%)

1.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 711.1 16 Nov 2017 07:37PM UTC 0
73.73
Travis Job 711.1
2 711.2 16 Nov 2017 07:38PM UTC 0
72.51
Travis Job 711.2
Source Files on build 711
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #711
  • 266c0d4d on github
  • Prev Build on alias_components (#221)
  • Next Build on alias_components (#714)
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