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

IndexError While Generating Load Output #77

Open
swaroopguggilam opened this issue Oct 10, 2023 · 0 comments
Open

IndexError While Generating Load Output #77

swaroopguggilam opened this issue Oct 10, 2023 · 0 comments

Comments

@swaroopguggilam
Copy link

swaroopguggilam commented Oct 10, 2023

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
`

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