Skip to content

Option 2 in WeatherDataOption no longer allows the rest of the code to run and Chanco.yaml not updated

Summary

The Chanco.yaml file was not updated with the new parameters: SkyDiscretizationScheme, MF, FibonacciSamples and DiffuseSkyType and Siguesol_loc.yaml was missing DiffuseSkyType. When running the code using the scenario Chanco.yaml and WeatherDataOption = 2, there is an key error in the Light class because of the call of 'DateTime' line 169 of light.py.

Other problem discovered resolving this: Running example.py works properly but when I am trying to run main.py with Siguesol_loc.yaml using the new sky types paradigm, there is an error because on the 23rd January of 2008, GHI data from PVGIS for Siguesol Location are 0 all the day. ==> CIE Sky Type therefore equals NaN and when trying to launch "self.compute_daily_diff_irradiation", outs is an empty list.

Steps to reproduce

Initial problem: use the scenario Chanco.yaml after adding the new parameters.

Other problem: make run the main.py file with the Siguesol_loc.yaml scenario.

Example Project

n/a

What is the current bug behavior?

Initial problem: Key error.

Other problem: list index out of range because trying to choose the first variable of an empty list.

What is the expected correct behavior?

Initial problem: No error when using Chanco.yaml and option 2 for WeatherDataOption if the format of the file is ok. Other problem: No error when using Siguesol_loc.yaml with the new sky type paradigm.

Relevant logs and/or screenshots

Other problem: image

Possible fixes

Initial problem: The DateTime name of column should appear in the weather dataframe even when using option 2 for WeatherDataOption or this name should not be used in light.py.

Other problem: The algorithm computing diffuse light should works even if data for light (GHI from PVGIS during daytime) are equal to 0 for some days (@abouvry)??

Related

#192

Edited by Bouvry Arnaud