Closed BjoernLaemmerzahl closed 8 years ago
You may wish to change in generators.py the: def str(self): return 'g{ind}'.format(ind=self.index)
To something like this: def str(self): if self.name != "": return self.name return 'Gen{ind}'.format(ind=self.index)
Words can not describe the happiness your answer brought to me. Although I am embarrassed I did not see this line of code.
I love minpower but i am fairly new to Python.
When running a sample EC, the output will always name the generators "g0","g1","g2", (...) , even though I specified a name and fuel type.
Where am I going wrong?
generators.csv
commitment-power.csv