Skip to content

Commit

Permalink
un-add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kelle committed Nov 15, 2024
1 parent 598c1f2 commit 88b9b54
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/test_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,20 +253,16 @@ def test_trim(self):
assert len(trimmed[0].wave) == 115

# Test exclude
s1 = copy.copy(self.flat1)
trimmed = s1.trim(exclude=[(0.8 * q.um, 3 * q.um)], concat=False)
assert len(trimmed[0].wave) == 115
trimmed2 = s1.trim(exclude=[(0.8 * q.um, 3 * q.um)], concat=False)

# Test split
s1 = copy.copy(self.flat1)
trimmed = s1.trim(exclude=[(0.8 * q.um, 0.9 * q.um)], concat=False)
assert len(trimmed[0].wave) == 115
trimmed3 = s1.trim(exclude=[(0.8 * q.um, 0.9 * q.um)], concat=False)
# assert len(trimmed3[0].wave) == 115


# Test concat
s1 = copy.copy(self.flat1)
trimmed = s1.trim(exclude=[(0.8 * q.um, 0.9 * q.um)], concat=True)
assert len(trimmed.wave) == 173
trimmed4 = s1.trim(exclude=[(0.8 * q.um, 0.9 * q.um)], concat=True)
# assert len(trimmed4.wave) == 173


class TestFileSpectrum(unittest.TestCase):
Expand Down

0 comments on commit 88b9b54

Please sign in to comment.