Skip to content

Commit

Permalink
Exit density inversion test if gsw is not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
castelao committed May 28, 2017
1 parent b3e6260 commit 82b5174
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/qctests/test_density_inversion.py
Expand Up @@ -10,6 +10,12 @@


def test():
try:
import gsw
except:
print('GSW package not available. Can\'t run density_inversion test.')
return

dummy_data = {
'PRES': ma.masked_array([0.0, 100, 5000]),
'TEMP': ma.masked_array([25.18, 19.73, 2.13]),
Expand Down

0 comments on commit 82b5174

Please sign in to comment.