Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CIF
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 19
    • Issues 19
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VERIFY
  • CIF
  • Issues
  • #12

Closed
Open
Created Sep 18, 2020 by Jacob van Peet@vanpeetDeveloper

KeyError when trying to run the toy-model

Summary

There's a KeyError when trying to run the toy model.

Steps to reproduce

I updated both master and TM5 branches to ff763fcd and f8c6604f respectively. Then I tried to run the toy model using the attached yaml file. pycif raised a KeyError, see the attached log.

What is the current bug behavior?

pycif crashes

What is the expected correct behavior?

no crashes

Relevant logs and/or screenshots

yaml file: cif-toy_model-2.yaml
log file: pycif.logtest
Note: the python traceback is not included in the log file, it's included below

Traceback (most recent call last):
  File "/opt/miniconda3/envs/cif/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/miniconda3/envs/cif/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jpt930/werk/verify/cif/src/pycif/__main__.py", line 30, in <module>
    main()
  File "/home/jpt930/werk/verify/cif/src/pycif/__main__.py", line 26, in main
    Setup.run_simu(args)
  File "/home/jpt930/werk/verify/cif/src/pycif/utils/classes/setup.py", line 46, in run_simu
    return setup.mode.execute(**args)
  File "/home/jpt930/werk/verify/cif/src/pycif/plugins/modes/forward/execute.py", line 40, in execute
    **kwargs
  File "/home/jpt930/werk/verify/cif/src/pycif/plugins/obsoperators/standard/obsoper.py", line 169, in obsoper
    onlyinit=getattr(self, "onlyinit", False),
  File "/home/jpt930/werk/verify/cif/src/pycif/plugins/obsoperators/standard/transforms/do_transforms.py", line 79, in do_transforms
    onlyinit=onlyinit,
  File "/home/jpt930/werk/verify/cif/src/pycif/plugins/transforms/dump2inputs/forward.py", line 44, in forward
    data2dump, input_type, di, df, runsubdir, mode, onlyinit, do_simu
  File "/home/jpt930/werk/verify/cif/src/pycif/plugins/models/dummy/io/native2inputs.py", line 49, in native2inputs
    make_meteo(self, datastore, ddi, ddf)
  File "/home/jpt930/werk/verify/cif/src/pycif/plugins/models/dummy/io/inputs/meteo.py", line 2, in make_meteo
    ds = datastore.datastore[("meteo", "")]["spec"]
KeyError: ('meteo', '')
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking