Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with load_ncdf when using the option --lncd_input_file #20

Open
pjacquet1977 opened this issue Jun 12, 2024 · 0 comments
Open

Error with load_ncdf when using the option --lncd_input_file #20

pjacquet1977 opened this issue Jun 12, 2024 · 0 comments

Comments

@pjacquet1977
Copy link
Collaborator

When I set "modules_preproc": ["load_ncdf"] and igm_run --lncd_input_file=$PATH"input.nc" I obtain the error message:

Traceback (most recent call last):
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm_venv_gpu/bin/igm_run", line 33, in
sys.exit(load_entry_point('igm-model', 'console_scripts', 'igm_run')())
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm/igm/igm_run.py", line 48, in main
run_intializers(imported_modules, params, state)
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm/igm/common.py", line 165, in run_intializers
module.initialize(params, state)
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm/igm/modules/preproc/load_ncdf/load_ncdf.py", line 83, in initialize
I = np.where(TIME == params.time_start)[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant