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

Missing parameter ResultsPath #103

Open
HauHe opened this issue Jan 18, 2021 · 1 comment
Open

Missing parameter ResultsPath #103

HauHe opened this issue Jan 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@HauHe
Copy link
Contributor

HauHe commented Jan 18, 2021

After adding a csv called ResultsPathto a datapackage and converting the datapackage to a datafile, the paramter ResultsPath is not inlcuded in the datafile.

@HauHe
Copy link
Contributor Author

HauHe commented Mar 15, 2021

Hi @willu47,

I have tried to add the param ResultPath to otoole. I edited the files datapackage.jsonand config.yaml in src>otoole>preprocesses. However, either my additions are not right or I'm missing something else. When testing it I get the error below. Do you have any suggestion what I need to change?
You can find the modified version here: HauHe/otoole

(HauHe_otoole) OSeMOSYS_step/data - (main) > otoole -vvv convert datafile datapackage simplicity.txt simplicity
Traceback (most recent call last):
  File "/opt/anaconda3/envs/HauHe_otoole/bin/otoole", line 33, in <module>
    sys.exit(load_entry_point('otoole', 'console_scripts', 'otoole')())
  File "/Users/cotti/GitHub/HauHe/otoole/src/otoole/cli.py", line 287, in main
    args.func(args)
  File "/Users/cotti/GitHub/HauHe/otoole/src/otoole/cli.py", line 145, in conversion_matrix
    read_strategy = ReadDatafile()
  File "/Users/cotti/GitHub/HauHe/otoole/src/otoole/input.py", line 152, in __init__
    self._input_config = self._add_dtypes(self._input_config)
  File "/Users/cotti/GitHub/HauHe/otoole/src/otoole/input.py", line 158, in _add_dtypes
    for column in details["indices"] + ["VALUE"]:
KeyError: 'indices'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants