Closed ScottWales closed 3 years ago
The following query should only return the filename once, not multiple times
from clef.code import connect, Session, search clef_db = connect() clef_session = Session() {{constraint = {'source_id':'ACCESS-CM2','cmor_table':'Amon', 'experiment':'historical', 'variable_id':'tas'} }} results = search(clef_session, project='cmip6', **constraint) for k, r in results.iterrows(): print(k,r['filename']) the result is /g/data/fs38/publications/CMIP6/CMIP/CSIRO-ARCCSS/ACCESS-CM2/historical/r1i1p1f1/Amon/tas/gn/v20191108 ['tas_Amon_ACCESS-CM2_historical_r1i1p1f1_gn_185001-201412.nc', 'tas_Amon_ACCESS-CM2_historical_r1i1p1f1_gn_185001-201412.nc'] /g/data/fs38/publications/CMIP6/CMIP/CSIRO-ARCCSS/ACCESS-CM2/historical/r2i1p1f1/Amon/tas/gn/v20191125 ['tas_Amon_ACCESS-CM2_historical_r2i1p1f1_gn_185001-201412.nc', 'tas_Amon_ACCESS-CM2_historical_r2i1p1f1_gn_185001-201412.nc'] /g/data/fs38/publications/CMIP6/CMIP/CSIRO-ARCCSS/ACCESS-CM2/historical/r3i1p1f1/Amon/tas/gn/v20200306 ['tas_Amon_ACCESS-CM2_historical_r3i1p1f1_gn_185001-201412.nc', 'tas_Amon_ACCESS-CM2_historical_r3i1p1f1_gn_185001-201412.nc']
This has been fixed by release 0.7
The following query should only return the filename once, not multiple times