Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Oct 17, 2024
1 parent 569d37e commit e3cf823
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/test_rsmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ def test_set_uncertainties() -> None:
assert len(test_map.uncertainties) == 3


def test_misconfigured_columns() -> None:
test_map = Map.from_dict(
{"F": rs.DataSeries([2.0, 3.0, 4.0]), "PHI": rs.DataSeries([0.0, 0.0, 0.0])},
)
del test_map["F"]
with pytest.raises(RuntimeError):
test_map.set_uncertainties(rs.DataSeries([2.0, 3.0, 4.0]))


def test_complex_amplitudes_smoke(noise_free_map: Map) -> None:
c_array = noise_free_map.complex_amplitudes
assert isinstance(c_array, np.ndarray)
Expand Down

0 comments on commit e3cf823

Please sign in to comment.