Skip to content

Commit

Permalink
fixed warning messaege
Browse files Browse the repository at this point in the history
  • Loading branch information
allibco committed Oct 31, 2023
1 parent 6eb181c commit 90d04a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyCECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,12 @@ def main(argv):
tsize = comp_std_gm.shape[1]
b = list(ens_var_name)
for f, avar in enumerate(b):
dist_995 = np.percentile(std_gm[avar], 99.5)
dist_005 = np.percentile(std_gm[avar], 0.5)
if np.ma.is_masked(std_gm[avar]):
tempa = std_gm[avar]
else:
tempa = np.array(std_gm[avar])
dist_995 = np.percentile(tempa, 99.5)
dist_005 = np.percentile(tempa, 0.5)
# print(avar, " = ", dist_005, dist_995)
count = 0
for i in range(tsize):
Expand Down

0 comments on commit 90d04a4

Please sign in to comment.