Skip to content

Commit

Permalink
#3177 review. Avoid use of magic numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrobodas committed Oct 12, 2023
1 parent 40b6081 commit 015eec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esmvaltool/diag_scripts/iht_toa/single_model_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,10 @@ def quiver_maps_data(self, vnames, change_sign):
efp = -efp
if change_sign[1]:
flx = -flx
vvv, uuu = np.gradient(efp.data, 1e14, 1e14)
efp.convert_units("PW")
vvv, uuu = np.gradient(efp.data)
uuu = uuu[1:-1, 1:-1]
vvv = vvv[1:-1, 1:-1]
efp.convert_units("PW")
return {'efp': efp, 'flx': flx, 'uuu': uuu, 'vvv': vvv}

def quiver_subplot(self, dargs, title, label, change_sign):
Expand Down

0 comments on commit 015eec3

Please sign in to comment.