Enhance SAM with features tailored to your specific needs! We collaborate with companies, universities, and organizations to privately fund new capabilities or analyses. Your investment drives innovation while benefiting the broader energy community. Email us to learn more.

Python ssc.py missing some staticmethods for info

  • Angus King
  • Topic Author
More
07 Apr 2015 20:50 #3221 by Angus King
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:

Code:
@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

Please Log in or Create an account to join the conversation.

  • Angus King
  • Topic Author
More
01 Jul 2015 03:49 #3222 by Angus King
Replied by Angus King on topic Python ssc.py missing some staticmethods for info
I notice these static methods are still missing from the 2015-6-30 version

Kind regards
AnGus

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum