coecms / clef

https://clef.readthedocs.io
7 stars 3 forks source link

bug if --remote and --csv are selected together #131

Closed paolap closed 4 years ago

paolap commented 4 years ago

if --remote and --csv are selected together the results do not list 'project', when the csv function tries to get the project from the data frame for the csv filename it throws an error.

paolap commented 4 years ago

Changed code.py at lines 316+ if 'experiment_id' in df.columns: project = 'CMIP6' else: project = 'CMIP5'

So we check how the experiment attribute is defined to work out which is the project.

paolap commented 4 years ago

Fixed in matching2 branch