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

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

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

16 Nov 2017 07:25PM UTC coverage: 73.729% (+3.6%) from 70.158%
711.1

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

5554 of 7533 relevant lines covered (73.73%)

0.74 hits per line

Source Files on job 711.1
  • Tree
  • List 0
  • Changed 52
  • Source Changed 51
  • Coverage Changed 45
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 711
  • Travis Job 711.1
  • 266c0d4d on github
  • Prev Job for on alias_components (#221.2)
  • Next Job for on alias_components (#714.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