Commit 1332cd2c authored by William Clarke's avatar William Clarke
Browse files

Update error name.

parent 51cf185e
......@@ -15,7 +15,7 @@ from fsl_mrs.utils.constants import GYRO_MAG_RATIO, PPM_SHIFT, PPM_RANGE
import numpy as np
class BasisHasInsufficentPoints(Exception):
class BasisHasInsufficentCoverage(Exception):
pass
......@@ -256,7 +256,7 @@ class MRS(object):
self.dwellTime,
self.numPoints)
except misc.InsufficentTimeCoverageError:
raise BasisHasInsufficentPoints('The basis spectra covers too little time. '
raise BasisHasInsufficentCoverage('The basis spectra covers too little time. '
'Please provide a basis with time-domain coverage '
'greater than the input data. Alternatively truncate '
'your input data.')
......
......@@ -11,7 +11,7 @@ import pytest
import numpy as np
from fsl_mrs.core import MRS, mrs_from_files
from fsl_mrs.core.mrs import BasisHasInsufficentPoints
from fsl_mrs.core.mrs import BasisHasInsufficentCoverage
from fsl_mrs.utils import synthetic as syn
from fsl_mrs.utils.misc import FIDToSpec, hz2ppm
from fsl_mrs.utils.constants import GYRO_MAG_RATIO
......@@ -205,7 +205,7 @@ def test_basis_size(synth_data):
# Truncate basis to test error reporting
basis = basis[:, :512]
with pytest.raises(BasisHasInsufficentPoints):
with pytest.raises(BasisHasInsufficentCoverage):
MRS(FID=fid,
header=hdr,
basis=basis,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment