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

Dangling node in yaml file causes difficult error message #26

Open
berland opened this issue Nov 15, 2019 · 0 comments
Open

Dangling node in yaml file causes difficult error message #26

berland opened this issue Nov 15, 2019 · 0 comments

Comments

@berland
Copy link
Contributor

berland commented Nov 15, 2019

Attempt at reconstruction (taken from an example, not the real user config):

input:
  eclroot: ../xtgeo-testdata/3dgrids/reek/REEK
  grid: $eclroot.EGRID

  # alternative approach to read a variables and dates:
  properties:
    -
      name: PORO
      source: $eclroot.INIT
    -
      name: SWAT
      source: $eclroot.UNRST
      dates: !include_from tests/yaml/global_config3a.yml::global.DATES
      diffdates: !include_from tests/yaml/global_config3a.yml::global.DIFFDATES
    -
#      name: PRESSURE
#      source: $eclroot.UNRST
#      dates: !include_from tests/yaml/global_config3a.yml::global.DATES
#      diffdates: !include_from tests/yaml/global_config3a.yml::global.DIFFDATES

The dangling dash - causes the error TypeError: argument of type 'NoneType' is not iterable from line 242 in _configparser.py which does if 'name' not in prop

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