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

openmrslab / suspect / 114
71%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2017 08:20PM UTC
Jobs 1
Files 44
Run time 2s
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
114

push

travis-ci

web-flow
ENH: make spectra first class objects (#43)

* Attempts to introduce inheritance to Suspect by creating an MRSBase class with two subclasses, MRSData and MRSSpectrum. Includes methods in each subclass that convert data to the opposite domain. Delegated adjust_phase() to MRSSpectrum. This structure allows users to work with MRS data in whichever domain they want. Safely deleted mrsdata.py (redundant). Resolves #24
Updated other files as needed to reflect this new inheritance structure
Updated requirements.txt to include pydicom

* Removed an unnecessary __new__ constructor in the MRSData subclass

* Attempts to introduce inheritance to Suspect by creating an MRSBase class with two subclasses, MRSData and MRSSpectrum. Includes methods in each subclass that convert data to the opposite domain. Delegated adjust_phase() to MRSSpectrum. This structure allows users to work with MRS data in whichever domain they want. Safely deleted mrsdata.py (redundant). Resolves #24
Updated other files as needed to reflect this new inheritance structure
Updated requirements.txt to include pydicom

* Removed an unnecessary __new__ constructor in the MRSData subclass

* ENH #24: rebased earlier work to current master

 Resuming work on this enhancement after some time, first
 thing is to rebase it onto the current master and get it to
 pass the unit tests, which this commit does

* ENH #24: added new unit test

Simple new unit test to check that calling spectrum()
and fid() return objects of the correct types

* ENH #24: improving readability

removed some commented code and added docstrings

30 of 30 new or added lines in 3 files covered. (100.0%)

1251 of 1665 relevant lines covered (75.14%)

0.75 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
100.0
suspect/mrsobjects.py
Jobs
ID Job ID Ran Files Coverage
1 114.1 25 Mar 2017 08:20PM UTC 0
75.14
Travis Job 114.1
Source Files on build 114
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #114
  • 964f2460 on github
  • Prev Build on master (#109)
  • Next Build on master (#121)
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