Skip to content

Commit b09ed22

Browse files
committed
corrections in driver_plot_portraitplot.py
There was an error during the computation of CMIP5 and CMIP6 mean values
1 parent f5d69be commit b09ed22

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = 'v1.0'
2-
__git_tag_describe__ = 'v1.0-beta-2019'
3-
__git_sha1__ = '24c63a4a923f6764d4338e64da2efb2ba7209eea'
1+
__version__ = 'v1.0-2020'
2+
__git_tag_describe__ = 'v1.0-2020'
3+
__git_sha1__ = 'f5d69bef7abdd11f5cc984b34e702cbdb498e486'

scripts/driver_plot_portraitplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@
132132
mea = float(NUMPYmean(tmp))
133133
std = float(NUMPYstd(tmp))
134134
del tmp
135-
for ii, dd in enumerate(list_observations+["reference"] + list(reversed(list_projects))):
135+
for ii, dd in enumerate(list_observations + ["reference"] + list_projects):
136136
if dd in list_observations:
137137
val = dict_ref_met[dd][met]
138138
elif dd in list_projects:
139-
tmp = [tab[ii + plus, jj] for ii, mod in enumerate(my_models) if mod in list(model_by_proj[dd].keys())]
139+
tmp = [tab[kk + plus, jj] for kk, mod in enumerate(my_models) if mod in list(model_by_proj[dd].keys())]
140140
tmp = NUMPYma__masked_invalid(NUMPYma__array(tmp))
141141
tmp = NUMPYmasked_where(tmp == 1e20, tmp).compressed()
142142
val = float(NUMPYmean(tmp))

0 commit comments

Comments
 (0)