I've recently noticed that retrieving the 'gen' array - Total electric power to grid' is much slower than earlier releases of the SDK. The change actually occurred somewhere between Build 174 and 180. Is there a better way to access this data or is it due to some internal change?
I'm using Python 2.7 and the relevant code is:
clock_start = time.clock()
module = ssc.Module('windpower')
print time.clock() - clock_start
farmpwr = self.data.get_array('gen')
print time.clock() - clock_start
Build 174 and prior would take about 2 seconds to execute the module and retrieve the data and it's now around 14 seconds. Below is a small execution log for two runs:
22:38:23. SAM SDK Core: Version = 174. Build info = Linux 64 bit GNU/C++ Jun 19 2017 05:06:12.
22:38:32. Processing Collgar Wind Farm
22:38:32. (0.000110 seconds)
22:38:34. (1.951400 seconds)
22:39:03. Power plot completed for Collgar Wind Farm. 568,148.0 MWh; CF 0.31
22:48:52. SAM SDK Core: Version = 180. Build info = Linux 64 bit GNU/C++ Oct 30 2017 03:52:08.
22:49:05. Processing Collgar Wind Farm
22:49:05. (0.000062 seconds)
22:49:19. (14.434305 seconds)
22:49:26. Power plot completed for Collgar Wind Farm. 573,984.0 MWh; CF 0.32
Kind regards
Angus