Comments (4)
Yup, that's what #36 is about.
from e3sm_diags.
This isnt that important to me actually, I have no problem generating the parameters file. That said, however you're doing argument parsing should be updated to no crash when you dont give it the arguments its expecting. Right now if you just call acme_diags_driver.py with nothing it does this:
(workflow) -bash-4.1$ acme_diags_driver.py
Traceback (most recent call last):
File "/export/baldwin32/anaconda2/envs/workflow/bin/acme_diags_driver.py", line 4, in <module>
__import__('pkg_resources').run_script('acme-diags==0.1', 'acme_diags_driver.py')
File "/export/baldwin32/anaconda2/envs/workflow/lib/python2.7/site-packages/pkg_resources/__init__.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/export/baldwin32/anaconda2/envs/workflow/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1494, in run_script
exec(code, namespace, namespace)
File "/export/baldwin32/anaconda2/envs/workflow/lib/python2.7/site-packages/acme_diags-0.1-py2.7.egg-info/scripts/acme_diags_driver.py", line 48, in <module>
original_parameter = parser.get_parameter(default_vars=False)
File "/export/baldwin32/anaconda2/envs/workflow/lib/python2.7/site-packages/cdp/cdp_parser.py", line 37, in get_parameter
self._parameter.check_values()
File "/export/baldwin32/anaconda2/envs/workflow/lib/python2.7/site-packages/acme_diags/acme_parameter.py", line 58, in check_values
if self.reference_data_path == '':
AttributeError: 'ACMEParameter' object has no attribute 'reference_data_path'
Im not sure what the cdp.parser uses under the hood, but argparse has a nice parser.print_help() method that I use like this:
if not args.config:
parser.print_help()
sys.exit()
from e3sm_diags.
Ah cool, didnt see it there.
from e3sm_diags.
Done in fbf8370
from e3sm_diags.
Related Issues (20)
- Avoid hardwiring `INSTALL_PATH` so that installing the package is more flexible
- Including GPCP v3.2 and retire v2.2
- Add 2m specific humidity and 10m wind speed to lat-lon maps.
- `e3sm_diags.drivers.utils.climo` is not designed for `"SEASONALCYCLE"` or `"ANNUALCYCLE"` HOT 1
- Refine of 4 yaml files in `conda-env` HOT 4
- Replace Anaconda badges on README using conda-forge channel
- [Refactor]: Replace `imp` module references due to planned removal in Python 3.12 HOT 1
- Add GitHub issues and pull request templates
- Unify extents of colorbars in comparison plots HOT 1
- [Bug]: `IndexError` when reversing decreasing `lev` coordinates in `hybrid_to_plevs()` and `pressure_to_plevs()`
- Enhanced aerosol budget tables for AWG HOT 1
- Add mixed phase partition plot based on simulator output and obs
- Difference lat-lon maps only show half for several obs datasets HOT 7
- Feature request: Include reanalysis with Pre-Industrial period coverage
- Explore refactoring of `acme.py` for readability and simplicity
- QBO mvm generation bug? HOT 3
- concurrent.futures.process.BrokenProcessPool testing e3sm_unified rc12 on Perlmutter HOT 29
- [Bug]: Regridding time-series variable's climatology from hybrid to pressure levels breaks due to misaligned axes HOT 2
- Season selector not working for zonal_mean_2d_stratosphere
- Replace climatology implementation to use xCDAT
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 e3sm_diags.