def setPlottingPort(port):
     if port > 0:
         import scisoftpy.plot as plot
         plot.setremoteport(rpcport=port)
Exemple #2
0
 def setPlottingPort(port):
     if port > 0:
         import scisoftpy.plot as plot
         plot.setremoteport(rpcport=port)
import os, sys

'''
Import the rpc part which we will use for workflows.
'''
import scisoftpy.rpc as rpc #@UnresolvedImport
rpcserver = rpc.rpcserver(int(sys.argv[1]))

'''
We tell scisoft the port to be used for plotting
'''
import scisoftpy.plot as plot
plottingPort = int(sys.argv[2]);

if (plottingPort>0):
    plot.setremoteport(rpcport=plottingPort)


def isActive(dummy):
    return True

rpcserver.add_handler("isActive",  isActive)

def runScript(scriptPath, sets, outputs, additionalPaths=None):
    '''
    scriptPath  - is the path to the user script that should be run
    sets        - is a dictionary of object which can be unflattened to numpy arrays
    outputs     - is a String list of the names of global outputs which 
                  should be placed in the returned dictionary
    additionalPaths - list of other python path locations
    '''
Exemple #4
0
'''
import time
import os, sys
'''
Import the rpc part which we will use for workflows.
'''
import scisoftpy.rpc as rpc  #@UnresolvedImport
rpcserver = rpc.rpcserver(int(sys.argv[1]))
'''
We tell scisoft the port to be used for plotting
'''
import scisoftpy.plot as plot
plottingPort = int(sys.argv[2])

if (plottingPort > 0):
    plot.setremoteport(rpcport=plottingPort)


def isActive(dummy):
    return True


rpcserver.add_handler("isActive", isActive)


def runScript(scriptPath, sets, outputs, additionalPaths=None):
    '''
    scriptPath  - is the path to the user script that should be run
    sets        - is a dictionary of object which can be unflattened to numpy arrays
    outputs     - is a String list of the names of global outputs which 
                  should be placed in the returned dictionary