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

dmentipl / plonk / 707 / 2
82%
master: 82%

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

28 Aug 2020 12:41AM UTC coverage: 81.909% (+0.02%) from 81.885%
707.2

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.

3450 of 4212 relevant lines covered (81.91%)

0.82 hits per line

Source Files on job 707.2
  • Tree
  • List 0
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 558
  • Travis Job 707.2
  • c2d96d27 on github
  • Prev Job for on master (#706.2)
  • Next Job for on master (#708.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