Open smartie2076 opened 4 years ago
Way to fix input files:
import pandas as pd
import numpy
import os
folder = "2020_07_10_all_sites_value_between_0_1"
files = "data_"
range = numpy.arange(1,28,1)
for number in range:
file_path = os.path.join(os.path.abspath("."),folder,files+str(number)+".csv")
data = pd.read_csv(file_path, sep=",")
data = data.clip(0,1)
data.to_csv(file_path, index=False)
When a timeseries has negative values for an investment object, the simulation terminates. This is for example the case for PV plants: Some API might generate a negative value at early/late hours of the day...
...which then is not noticed when reading the input files but only in a termination of the simulation. The termination message is very generic:
This could be fixed by printing a warnining for these cases and clipping everything below 0.