Python ssc.py missing some staticmethods for info

2 posts / 0 new
Last post
ozsolarwind
Python ssc.py missing some staticmethods for info

I was looking at getting module variable details for required and constraints using ssc.py. It failed because two static methods were missing. I added the following at about line 250 of ssc.py and all is sweet:


@staticmethod
def ssc_info_required( p_inf ):
SSCAPI._dll.ssc_info_required.restype = c_char_p
return SSCAPI._dll.ssc_info_required( c_void_p(p_inf) )

@staticmethod
def ssc_info_constraints( p_inf ):
SSCAPI._dll.ssc_info_constraints.restype = c_char_p
return SSCAPI._dll.ssc_info_constraints( c_void_p(p_inf) )

Kind regards
AnGus

ozsolarwind

I notice these static methods are still missing from the 2015-6-30 version

Kind regards
AnGus

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer