Skip to content

Commit

Permalink
Fix failing tests after numpy update (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Aug 15, 2018
1 parent ce6482b commit 4d04d16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions salem/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ def __init__(self, x, y, crs=wgs84, size_x=640, size_y=640, scale=1,
kwargs : **
any keyword accepted by motionless.CenterMap (e.g. `key` for the API)
Note
----
Notes
-----
To obtain the exact domain specified in `x` and `y` you may have to
play with the `size_x` and `size_y` kwargs.
"""
Expand Down
2 changes: 1 addition & 1 deletion salem/wrftools.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def __getitem__(self, item):
p = vars['P'][item] + vars['PB'][item]
q = vars['QVAPOR'][item]
z = (vars['PH'][item] + vars['PHB'][item]) / 9.81
return np.squeeze(_ncl_slp(z, tk, p, q), axis=squeezax)
return np.squeeze(_ncl_slp(z, tk, p, q), axis=tuple(squeezax))

# Diagnostic variable classes in a list
var_classes = [cls.__name__ for cls in vars()['FakeVariable'].__subclasses__()]
Expand Down

0 comments on commit 4d04d16

Please sign in to comment.