- Posts: 7
LK and Python (availability of pre-made functions)
- SolH
- Topic Author
Less
More
21 Dec 2017 18:07 #5982
by SolH
LK and Python (availability of pre-made functions) was created 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
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
Less
More
- Posts: 5423
02 Jan 2018 12:02 #5983
by pgilman
Replied by pgilman on topic LK and Python (availability of pre-made functions)
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.
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