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

dmentipl / plonk / 707
82%

Build:
DEFAULT BRANCH: master
Ran 28 Aug 2020 12:51AM UTC
Jobs 3
Files 53
Run time 28s
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
707

push

travis-ci

dmentipl
Refactor load_snap

Now load_snap is a method on Snap. This change abstracts some of the
loading of data away from the phantom.py reader and puts it in Snap
itself.

To write a new reader, three functions are required:

- snap_properties_and_units,
- snap_array_registry,
- snap_sink_registry.

These functions take an h5py.File object as an argument (and optionally
a name map dictionary to rename arrays on file) and a string data_source
to say where the data is from, e.g. 'phantom'.

The first function gets some properties and code units, e.g. from the
Phantom header. The second two functions each create a dictionary with
keys as names of arrays and values as a function that when called with a
Snap object returns that array.

79 of 79 new or added lines in 6 files covered. (100.0%)

3450 of 4212 relevant lines covered (81.91%)

2.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 707.1 28 Aug 2020 12:51AM UTC 0
81.91
Travis Job 707.1
2 707.2 28 Aug 2020 12:51AM UTC 0
81.91
Travis Job 707.2
3 707.3 28 Aug 2020 12:51AM UTC 0
81.91
Travis Job 707.3
Source Files on build 707
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #707
  • c2d96d27 on github
  • Prev Build on master (#706)
  • Next Build on master (#708)
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

© 2025 Coveralls, Inc