SanPen / GridCal

GridCal, a cross-platform power systems software written in Python with user interface, used in academia and industry.
https://www.advancedgridinsights.com/gridcal
Mozilla Public License 2.0
418 stars 94 forks source link

row, column index of 2d array Sprof_fixed are opposite #269

Closed hinfsynz closed 8 months ago

hinfsynz commented 8 months ago

In "stochastic_power_flow_input.py" line 44,

self.Scdf_fixed = [CDF(Sprof_fixed[i, :]) for i in range(self.n)]

should be

self.Scdf_fixed = [CDF(Sprof_fixed[:, i]) for i in range(self.n)]

SanPen commented 8 months ago

Fantastic catch!

It's already fixed on devel (dexing so it is correct dc1b7e8)