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

LoLab-VU / pysb / 750
79%

Build:
DEFAULT BRANCH: master
Ran 22 Jan 2018 09:15PM UTC
Jobs 2
Files 97
Run time 1min
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
750

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

6237 of 8320 relevant lines covered (74.96%)

1.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 750.1 22 Jan 2018 09:15PM UTC 0
74.51
Travis Job 750.1
2 750.2 22 Jan 2018 09:16PM UTC 0
73.77
Travis Job 750.2
Source Files on build 750
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #750
  • 6fd801a2 on github
  • Prev Build on master (#748)
  • Next Build on master (#751)
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