We will be performing a major infrastructure and web site ugprades on Friday, September 27th 8:00 am - 5:00 pm MST (UTC -7).

The website will be down during that time.

LK and Python (availability of pre-made functions)

  • SolH
  • Topic Author
More
22 Dec 2017 01:07 #5982 by SolH
There are a number of useful pre-made functions in LK such as:
choose_from_list()
library()
etc
Is there a Python library extension or the like where these might be available for use within Python?

-Sol

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

  • pgilman
More
02 Jan 2018 19:02 #5983 by pgilman
Those functions are not available via the SDK. The API that is part of the SDK provides access to the SAM Simulation Core (SSC), so your Python code interacts with SSC.

LK interacts with SAM's user interface (developed in wxWidgets), which is a separate code project.

In case you are interested, you can see the source code for those functions in the LK repository on GitHub:

github.com/NREL/lk/blob/develop/src/stdlib.cpp

Best regards,
Paul.

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

Moderators: pgilman
Powered by Kunena Forum