Skip to content

IndexError While Generating Load Output #77

@swaroopguggilam

Description

@swaroopguggilam

I am trying to set up the Eirgrid Case to generate yearly chronics.
As we talked about over Discord, I have emailed you the case setup.
I am mainly using all default values and performing "LRTK" mode.

It gives following error (Note - I have edited the file paths to delete personal information):
`
notebook folder is \Chronix2grid\cases\eirgrid
SCENARIO_FOLDER_BASE_NAME is Scenario
Seeds -> [1526836599]
Scenario_2
{'weeks': 4, 'start_date': Timestamp('2020-01-01 00:00:00'), 'year': 2020}
{'dt': 5.0, 'planned_std': 0.01, 'weeks': 4, 'start_date': Timestamp('2020-01-01 00:00:00'), 'year': 2020, 'end_date': Timestamp('2020-01-28 23:55:00'), 'T': 40315}
{'Lx': 1000.0, 'Ly': 1000.0, 'dx_corr': 250.0, 'dy_corr': 250.0, 'long_wind_corr': 20160.0, 'medium_wind_corr': 1440.0, 'short_wind_corr': 300.0, 'solar_corr': 20.0, 'smoothdist': 0.001, 'std_solar_noise': 0.4, 'std_short_wind_noise': 0.02, 'std_medium_wind_noise': 0.15, 'std_long_wind_noise': 0.15, 'year_solar_pattern': 2007.0}
================ Generating scenario number 0 ================
Computing global auto-correlated spatio-temporal noise for sun and wind...
Generating solar and wind production chronics
Saving files in zipped csv

{'Lx': 485401.0, 'Ly': 602796.0, 'dx_corr': 713.0, 'dy_corr': 885.0, 'temperature_corr': 400.0, 'std_temperature_noise': 0.06}
================ Generating scenario number 0 ================
Computing global auto-correlated spatio-temporal noise for thermosensible demand...
Computing loads ...
Traceback (most recent call last):
File "eirgrid\chronics2grid.py", line 193, in
load, load_forecasted = generator.do_l(scenario_folder_path, seed, params_load,
File "\lib\site-packages\chronix2grid\GeneratorBackend.py", line 245, in do_l
load, load_forecasted = generator_loads.run()
File "\lib\site-packages\chronix2grid\generation\consumption\ConsumptionGeneratorBackend.py", line 47, in run
return main(self.out_path, self.seed, self.params, self.loads_charac, load_weekly_pattern, self.write_results,
File "\lib\site-packages\chronix2grid\generation\consumption\generate_load.py", line 74, in main
loads_series = conso.compute_loads(loads_charac,
File "\lib\site-packages\chronix2grid\generation\consumption\consumption_utils.py", line 45, in compute_loads
tmp_ = compute_residential(locations, Pmax, temperature_noise,
File "\lib\site-packages\chronix2grid\generation\consumption\consumption_utils.py", line 88, in compute_residential
temperature_signal = utils.interpolate_noise(
File "\lib\site-packages\chronix2grid\generation\generation_utils.py", line 133, in interpolate_noise
output += dist * computation_noise[x_neighbor, y_neighbor, :]
IndexError: index -2298 is out of bounds for axis 1 with size 1947

Process finished with exit code 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions