atlite icon indicating copy to clipboard operation
atlite copied to clipboard

Setting the "capacity_factor_timeseries = True" the results seem not to change

Open TimFuermann opened this issue 2 years ago • 2 comments

https://github.com/PyPSA/atlite/blob/c1e29e8ceb7b24b00e1852e5df7dd0d01a18aa82/atlite/convert.py#L128-L137

By setting the "capacity_factor_timeseries = True" the results seem not to be changed and a single generation time series is returned. The reason might be that the flag "capacity_factor_timeseries = True" cannot be used when only a layout (no matrix and shape) is given. I believe that line 129 is only reached if no_args = True, which means that none of layout, shapes and matrix, need to be given, in order to execute the flag.

A possible fix could be to unindending the lines: L128-L137

TimFuermann avatar Apr 11 '24 14:04 TimFuermann

hey @TimFuermann, thanks for raising an issue, I am not sure what the expected dimension should when setting capacity_factor_timeseries. Would you mind creating a PR and make a suggestion on how to change it?

FabianHofmann avatar Apr 12 '24 07:04 FabianHofmann

@FabianHofmann: Sure, I am on it. Best, Tim

TimFuermann avatar Apr 12 '24 07:04 TimFuermann