LK and Python (availability of pre-made functions)

2 posts / 0 new
Last post
SolH
LK and Python (availability of pre-made functions)

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

Paul Gilman

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:

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

Best regards,
Paul.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer