diff options
author | Sunil Shetye | 2025-07-14 17:31:37 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-07-14 17:31:37 +0530 |
commit | 77a3397c16af8d18c12113c1d458e51f5df5269b (patch) | |
tree | e20aab80dd439c8ef61e6b5b0ef0d8bbba1e8522 | |
parent | 6541ee034c51d60d7aa1f022ef9c024329da5b3b (diff) | |
download | Common-Interface-Project-77a3397c16af8d18c12113c1d458e51f5df5269b.tar.gz Common-Interface-Project-77a3397c16af8d18c12113c1d458e51f5df5269b.tar.bz2 Common-Interface-Project-77a3397c16af8d18c12113c1d458e51f5df5269b.zip |
remove unused SCILAB settings
-rw-r--r-- | blocks/simulationAPI/helpers/ngspice_helper.py | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/blocks/simulationAPI/helpers/ngspice_helper.py b/blocks/simulationAPI/helpers/ngspice_helper.py index b41b13a9..1dcd1e00 100644 --- a/blocks/simulationAPI/helpers/ngspice_helper.py +++ b/blocks/simulationAPI/helpers/ngspice_helper.py @@ -1,6 +1,6 @@ import json import os -from os.path import abspath, join, splitext +from os.path import join, splitext import re import subprocess from celery import current_task @@ -17,30 +17,6 @@ from simulationAPI.helpers.scilab_manager import start_scilab, upload, remove, r logger = get_task_logger(__name__) XmlToXcos = join(settings.BASE_DIR, 'Xcos/XmlToXcos.sh') -SCILAB_DIR = abspath(settings.SCILAB_DIR) -SCILAB = join(SCILAB_DIR, 'bin', 'scilab-adv-cli') -# handle scilab startup -SCILAB_START = ( - "try;funcprot(0);lines(0,120);" - "clearfun('messagebox');" - "function messagebox(msg,title,icon,buttons,modal),disp(msg),endfunction;" - "funcprot(1);" - "catch;[error_message,error_number,error_line,error_func]=lasterror();" - "disp(error_message,error_number,error_line,error_func);exit(3);end;" -) - -SCILAB_END = ( - "catch;[error_message,error_number,error_line,error_func]=lasterror();" - "disp(error_message,error_number,error_line,error_func);exit(2);end;exit;" -) -SCILAB_CMD = [SCILAB, - "-noatomsautoload", - "-nogui", - "-nouserstartup", - "-nb", - "-nw", - "-e", SCILAB_START] -LOGFILEFD = 123 START_STATES = ["STARTED"] END_STATES = ["SUCCESS", "FAILURE", "CANCELED"] |