Esempio n. 1
0
 def __init__(self, executable=None, logger=None, timeout=None,
              oned_as='row', temp_dir=None):
     """Start Scilab and create our MAT helpers
     """
     self._oned_as = oned_as
     self._temp_dir = temp_dir or gettempdir()
     self._executable = executable
     atexit.register(lambda: _remove_temp_files(self._temp_dir))
     self.timeout = timeout
     if not logger is None:
         self.logger = logger
     else:
         self.logger = get_log()
     import logging
     self.logger.setLevel(logging.ERROR)
     self._session = None
     self.restart()
Esempio n. 2
0
 def __init__(self,
              executable=None,
              logger=None,
              timeout=None,
              oned_as='row',
              temp_dir=None,
              convert_to_float=True):
     """Start Scilab and create our MAT helpers
     """
     self._oned_as = oned_as
     self._temp_dir = temp_dir or gettempdir()
     self._executable = executable
     atexit.register(lambda: _remove_temp_files(self._temp_dir))
     self.timeout = timeout
     if not logger is None:
         self.logger = logger
     else:
         self.logger = get_log()
     #self.logger.setLevel(logging.DEBUG)
     self._session = None
     self._convert_to_float = convert_to_float
     self.restart()
 def test_remove_files(self):
     from scilab2py.utils import _remove_temp_files
     _remove_temp_files(self.sci._temp_dir)
Esempio n. 4
0
 def test_remove_files(self):
     from scilab2py.utils import _remove_temp_files
     _remove_temp_files(self.sci._temp_dir)