コード例 #1
0
ファイル: mlabraw.py プロジェクト: cpbotha/mlabwrap-purepy
def open(matlab_binary_path):

    if is_win:
        ret = MatlabConnection()
        ret.open()

    else:
        ret = MatlabConnection(matlab_binary_path)
        ret.open()

    return ret
コード例 #2
0
ファイル: mlabraw.py プロジェクト: cpbotha/mlabwrap-purepy
def open(matlab_binary_path):

    if is_win:
        ret = MatlabConnection()
        ret.open()

    else:
        ret = MatlabConnection(matlab_binary_path)
        ret.open()

    return ret
コード例 #3
0
ファイル: mlabraw.py プロジェクト: ericjsolis/danapeerlab
def open(arg):
  if is_win:
    ret = MatlabConnection()
    ret.open()
  else:
    if settings.MATLAB_PATH != 'guess':
      matlab_path = settings.MATLAB_PATH + '/bin/matlab'
    else:
      matlab_path = 'guess'
    try:
      ret = MatlabConnection(matlab_path)
      ret.open()
    except:
      print 'Could not open matlab, is it in %s?' % matlab_path
  return ret
コード例 #4
0
def open(arg):
    if is_win:
        ret = MatlabConnection()
        ret.open()
    else:
        if settings.MATLAB_PATH != 'guess':
            matlab_path = settings.MATLAB_PATH + '/bin/matlab'
        else:
            matlab_path = 'guess'
        try:
            ret = MatlabConnection(matlab_path)
            ret.open()
        except:
            print 'Could not open matlab, is it in %s?' % matlab_path
    return ret
コード例 #5
0
def open():
    global _MATLAB_RELEASE
    '''Opens MATLAB using specified connection (or DCOM+ protocol on Windows)where matlab_location  '''
    if is_win:
        ret = MatlabConnection()
        ret.open()
        return ret
    else:
        if settings.MATLAB_PATH != 'guess':
            matlab_path = settings.MATLAB_PATH + '/bin/matlab'
        elif _MATLAB_RELEASE != 'latest':
            matlab_path = discover_location(_MATLAB_RELEASE)
        else:
            # Latest release is found in __init__.by, i.e. higher logical level
            raise MatlabReleaseNotFound('Please select a matlab release or set its location.')
        try:
            ret = MatlabConnection(matlab_path)
            ret.open()
        except Exception:
            #traceback.print_exc(file=sys.stderr)
            raise MatlabReleaseNotFound('Could not open matlab, is it in %s?' % matlab_path)
        return ret