Comments (7)
Hi Damien,
did you use the latest clef?
We've released a new version last week (0.5.0) which is analysis3 and we're going to release probably a new one this week.
from clef.
@paolap Yep, I used version 0.5.0.
from clef.
Hi Damien I can't reproduce your issue, what occurs to me is that maybe you're using directly the 'local_query' function rather than 'search' which calls other functions before to check the arguments and values you're passing and fixes them if they need to.
We've also updated the read the docs now so there shouldn't be confusion anymore.
Could you confirm with me if that's the case, otherwise could you post the exact code you're using?
Thanks
from clef.
No problem. Following this example I did the following:
>>> import clef.code
>>> db = clef.code.connect()
>>> session = clef.code.Session()
>>> constraints_dash = {'variable': 'masso', 'model': 'ACCESS1-3', 'table': 'Omon', 'experiment': 'piControl', 'ensemble': 'r1i1p1'}
>>> clef.code.search(session, project='cmip5', **constraints_dash)
[]
>>> constraints_dot = {'variable': 'masso', 'model': 'ACCESS1.3', 'table': 'Omon', 'experiment': 'piControl', 'ensemble': 'r1i1p1'}
>>> clef.code.search(session, project='cmip5', **constraints_dot)
[{'filenames': ['masso_Omon_ACCESS1-3_piControl_r1i1p1_050001-074912.nc',
'masso_Omon_ACCESS1-3_piControl_r1i1p1_025001-049912.nc'],
'project': 'CMIP5',
'institute': 'CSIRO-BOM',
'model': 'ACCESS1.3',
'experiment': 'piControl',
'frequency': 'mon',
'realm': 'ocean',
'r': '1',
'i': '1',
'p': '1',
'ensemble': 'r1i1p1',
'cmor_table': 'Omon',
'version': None,
'variable': 'masso',
'pdir': '/g/data1/rr3/publications/CMIP5/output1/CSIRO-BOM/ACCESS1-3/piControl/mon/ocean/Omon/r1i1p1/latest/masso',
'periods': [('50001', '74912'), ('25001', '49912')],
'fdate': '25001',
'tdate': '74912',
'time_complete': None}]
from clef.
It's weird for some reason the master branch we used had a faulty version you can see here:
if 'model' in args.keys():
fix_model(project, args['model'])
should be
if 'model' in args.keys():
args['model'] = fix_model(project, args['model'])
we're calling the function but we don't update the value. This have been deleted accidentally at some stage in one of the branches we merged, because my version still has the right syntax and no change has been done on this for a while. Thanks for getting back to me, somehow we were already using a fixed version.
Also is covered by a new test Scott just added so we shouldn't miss that again
from clef.
Thanks, @paolap
from clef.
This is now solved in localfix, I also noticed alternative model names weren't working for --remote option, they now work for everything.
from clef.
Related Issues (20)
- version is not getting updated in post_local HOT 1
- Global log file not writeable by all users HOT 2
- capture error if nothing returned by remote query with and option HOT 1
- adding "saving to file" message where appropriate HOT 2
- add function to get variant-label from path where r/I/p1/f are 0 HOT 2
- fix for CMIP6 files with wrong member_id create issue with CMIP5
- check if request submission works correctly HOT 2
- CORDEX tables missing some cordex data HOT 2
- Length of Datasets HOT 1
- access from compute nodes HOT 4
- Update to citation flag: service changed
- Enhancement: Enable alternate help flag HOT 2
- Raise the number of results that can be returned only for the remote option HOT 1
- deprecation warning for pandas
- ESGF introduced limit to remote queries HOT 1
- problem with matching query HOT 1
- fix readthedocs
- deprecation warning pandas HOT 1
- clef.data as package
- clef on NCI missing some local files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clef.