Closed mlgarchery closed 6 years ago
Thanks @FirstWorldSlardar! It looks like you have a few issues here:
techs
you need to also assign them under locations
, e.g.:locations:
Xinjiang:
techs:
gas_demand:
etc...
coordinates: {lat: 84.9023, lon: 42.148}
If you have the same techs at every location, then you can use comma separation to keep things simple:
locations:
Xinjiang,Tibet,etc.:
techs:
gas_demand:
etc...
The import
and timeseries_data_path
strings are relative to the model.yaml
file, not to the directory from which you call calliope.Model
.
I would strongly suggest playing around more with the example models and having a detailed read through our documentation, as it will likely clear up a number of things!
My file structure is the following:
The import and timeseries_data_path strings are indeed relative to the model.yaml (I edited my mistake in model.yaml, it is indeed "timeseries_data_path: timeseries_data"). Sorry for that. I'll try adding the techs to the locations, and come back asap. Thanks!
Hi @FirstWorldSlardar , I assume you solved this issue in the end? If so, we'll close the issue!
yes indeed :)
Hello guys ! I submit bellow my entire configuration and output of the problem :)
Problem description
My .csv files are all following the format:
Output: * [2018-05-16 09:58:55] INFO: Model: initialising
IndexError Traceback (most recent call last)
~/anaconda3/envs/calliope1/lib/python3.6/site-packages/calliope/core/model.py in init(self, config, model_data, *args, *kwargs) 64 log_time(self._timings, 'model_creation', comment='Model: initialising') 65 if isinstance(config, str): ---> 66 model_run, debug_data = model_run_from_yaml(config, args, **kwargs) 67 self._init_from_model_run(model_run, debug_data) 68 elif isinstance(config, dict):
~/anaconda3/envs/calliope1/lib/python3.6/site-packages/calliope/core/preprocess/model_run.py in model_run_from_yaml(model_file, override_file, override_dict) 54 ) 55 ---> 56 return generate_model_run(config_with_overrides, debug_comments) 57 58
~/anaconda3/envs/calliope1/lib/python3.6/site-packages/calliope/core/preprocess/model_run.py in generate_model_run(config, debug_comments) 479 # Raises ModelErrors if there are problems with timeseries data at this stage 480 model_run['timeseries_data'], model_run['timesteps'] = ( --> 481 process_timeseries_data(config, model_run) 482 ) 483
~/anaconda3/envs/calliope1/lib/python3.6/site-packages/calliope/core/preprocess/model_run.py in process_timeseries_data(config_model, model_run) 432 if file not in cluster_filenames 433 ] --> 434 first_file, first_index = indices[0] 435 for file, idx in indices[1:]: 436 if not first_index.equals(idx):
IndexError: list index out of range