Skip to content

Commit

Permalink
Fix retrieval of value
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 11, 2020
1 parent 973ec90 commit 1b7ecb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spectral_cube/tests/test_dask.py
Expand Up @@ -109,4 +109,8 @@ def test_statistics_consistency_casa(data_adv, tmp_path):
pprint(stats_casa)

for key in stats:
assert_allclose(stats[key].value, stats_casa[key])
if isinstance(stats[key], u.Quantity):
value = stats[key].value
else:
value = stats[key]
assert_allclose(value, stats_casa[key])

0 comments on commit 1b7ecb3

Please sign in to comment.