Home Forums GENERAL Python in OptiSystem Reply To: Python in OptiSystem

#51149
Profile Photo
Ahmad Atieh
Moderator

Hello,
This is the feedback from our software Engineer.
First: you should add those two lines. The fist is the location where PyhonScripts are install. The second is temp location where the output temp files.
sys.path.append(‘/../../PythonScripts/PythonSignalLibrary’) #the directory that contains CDS_SystemManager
sys.path.append(tempfile.gettempdir() + ‘/OptiSystemTempDir’)

Second: SignalLibrary.py contains all necessary .py files including “from CDS_SystemManager import *”. You need to verify that.
Third: “from SystemManager import *” – Yes there is SystemManager.py file that is generated during calculation but is hidden for the user. The location is in ../OptiSystemTempDir You should not worry about this one.
Fourth: It is not necessary for the you to add to the path of the computer ..\PythonScripts\PythonComponents.

The calculation could fail if there is a problem with Python installation (adding necessary paths to computer est.. ).
Regards,
Ahmad

Categories