Skip to content

Commit

Permalink
Merge pull request #144 from coecms/postlocalbug
Browse files Browse the repository at this point in the history
fixed bug in post_local when CMIP5 query
  • Loading branch information
paolap authored Nov 11, 2020
2 parents fa8b3e1 + 0e0a96e commit e2d5eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
C. Carouge <[email protected]>
Paola Petrelli <[email protected]>
Scott Wales <[email protected]>
Scott Wales <[email protected]>
3 changes: 2 additions & 1 deletion clef/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def post_local(row):
# make sure a version is available even for CMIP6 where is usually None
if row['version'] is None:
row['version'] = get_version(row['path'])
if any(x in row['member_id'] for x in ['r0','i0','p0','f0']):
# check if 'f' in row keys to exclude CMIP5 queries
if 'f' in row.keys() and any(x in row['member_id'] for x in ['r0','i0','p0','f0']):
row['member_id'] = get_member(row['path'])
# variant_labele could actually be different if sub-experiment present but for the moment this should be ok
row['variant_label'] = row['member_id']
Expand Down

0 comments on commit e2d5eba

Please sign in to comment.