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

nismod / smif / 598 / 2
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 18 Jan 2018 11:14AM UTC
Files 32
Run time 1s
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

18 Jan 2018 11:07AM UTC coverage: 90.311% (-1.6%) from 91.877%
DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true"

push

travis-ci

web-flow
Merge pull request #119 from tomalrussell/feature/model_data_interface

Feature/model data interface

Implement a DataHandle to read/write from models straight to a DataInterface which implements a backing store for inputs, parameters and results.

Removes responsibility for data- and parameter-juggling from SosModel and ModelSet.

Intends to expose a friendly interface to anyone implementing a SectorModel, particularly within simulate(), hiding details of modelrun id and dependency-converging or decision-resolving iterations.

Extends DataInterface to read/write scenario data and results. Also provides a MemoryInterface implementation for convenience and testing.

ScenarioModel is no longer pre-loaded with data. A SectorModel requesting data will transparently read directly from the backing store if the data is provided by a scenario. This also means the get_scenario_data method can be (and has been) removed from SectorModel.

For discussion, but not necessarily blocking: this version is currently raising NotImplementedError for any dependency which would require any conversion. This could be implemented implicitly, but if we prefer explicit to implicit, we might design small data-conversion modules to sit in the dependency graph alongside SectorModel and ScenarioModel, maybe pulling from a smif library of handy default conversion functions.

833 of 919 branches covered (90.64%)

2442 of 2704 relevant lines covered (90.31%)

0.9 hits per line

Source Files on job 598.2 (DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true")
  • Tree
  • List 0
  • Changed 15
  • Source Changed 15
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 598
  • Travis Job 598.2
  • 48e7ea56 on github
  • Prev Job for DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true" on master (#596.2)
  • Next Job for DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true" on master (#599.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