Home › Forums › GENERAL › Python in OptiSystem › Reply To: Python in OptiSystem
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
- All
-
Knowledge
Contains a detailed Q&A knowledge base. -
General
All non-technical questions. -
System
Optical system design and analysis. -
Instrument
Communicate and control different kinds of instruments. -
SPICE
Opto-electronic circuit design. -
FDTD
Finite-Difference Time-Domain simulation. -
BPM
Beam Propagation Method analysis and design. -
Grating
Fiber optic grating simulation. -
Fiber
Optical fiber design and characterization. -
Exchange
Users can exchange design files.
(Matlab, C++, etc.)