Esempio n. 1
0
 def setup_logger(self):
     from traits.etsconfig.api import ETSConfig
     path = join(ETSConfig.application_data,
                 'mayavi_e3', 'mayavi.log')
     path = abspath(path)
     logger = logging.getLogger()
     setup_logger(logger, path, mode=self.log_mode)
Esempio n. 2
0
 def setup_logger(self):
     from traits.etsconfig.api import ETSConfig
     path = join(ETSConfig.application_data,
                 'mayavi_e3', 'mayavi.log')
     path = abspath(path)
     logger = logging.getLogger()
     setup_logger(logger, path, mode=self.log_mode)
Esempio n. 3
0
def main():

    # Get the default mayavi plugins.
    plugins = get_plugins()
    from rtrace_plugin import RTracePlugin
    from rtrace_service import RTraceService

    # Inject our plugin up front so our perspective becomes the default.
    #plugins = [ RTracePlugin() ]
    plugins.insert(0, RTracePlugin())

    from ibvpy_workbench_application import IBVPyWorkbenchApplication
    # Create an Envisage application.
    id = 'rtrace_service.rtrace_service'
    application = IBVPyWorkbenchApplication(id=id, plugins=plugins)

    rtrace_mgr = RTraceService(rtrace_list=[
        RTraceGraph(name='rte 1'),
        RTraceGraph(name='rte 2'),
        RTraceGraph(name='rte 3'),
        RTraceGraph(name='rte 4'),
        RTraceGraph(name='rte 5'),
        RTraceGraph(name='rte 6'),
        RTraceGraph(name='rte 7'),
        RTraceGraph(name='rte 8'),
        RTraceGraph(name='rte 8'),
        RTraceGraph(name='rte 10'),
        RTraceGraph(name='rte 11'),
    ])
    application.register_service('rtrace_service.RTraceService', rtrace_mgr)

    setup_logger(logger, 'rtrace.log', mode=logging.ERROR)

    # Start the application.
    application.run()
Esempio n. 4
0
 def setup_logger(self):
     """Overridden logger setup."""
     if self.standalone:
         path = os.path.join(ETSConfig.application_data, 'mayavi_e3',
                             'mayavi-test.log')
         path = os.path.abspath(path)
     else:
         path = 'mayavi-test.log'
     setup_logger(logger, path, mode=self.log_mode)
Esempio n. 5
0
 def setup_logger(self):
     """Overridden logger setup."""
     if self.standalone:
         path = os.path.join(ETSConfig.application_data,
                             'mayavi_e3', 'mayavi-test.log')
         path = os.path.abspath(path)
     else:
         path = 'mayavi-test.log'
     setup_logger(logger, path, mode=self.log_mode)
Esempio n. 6
0
def main():

    # Get the default mayavi plugins.
    plugins = get_plugins()
    # Inject our plugin up front so our perspective becomes the default.
    plugins.insert(0, ExplorerPlugin())

    # Create an Envisage application.
    id = 'explorer3d.Explorer3D'
    application = WorkbenchApplication(id=id, plugins=plugins)
    # This needs to be done here since the ETSConfig.application_home is
    # not set correctly up to this point.
    setup_logger(logger, 'explorer3d.log', mode=logging.ERROR)

    # Start the application.
    application.run()
Esempio n. 7
0
def main():

    # Get the default mayavi plugins.
    plugins = get_plugins()
    # Inject our plugin up front so our perspective becomes the default.
    plugins.insert(0, ExplorerPlugin())

    # Create an Envisage application.
    id = 'explorer3d.Explorer3D'
    application = WorkbenchApplication(id=id,
                                       plugins = plugins
                                       )
    # This needs to be done here since the ETSConfig.application_home is
    # not set correctly up to this point.
    setup_logger(logger, 'explorer3d.log', mode=logging.ERROR)

    # Start the application.
    application.run()
Esempio n. 8
0
 def setup_logger(self):
     """Setup logging for the application."""
     mayavi_app.setup_logger(logger, 'ibvpy.log', mode=self.log_mode)
Esempio n. 9
0
 def setup_logger(self):
     """Setup logging for the application."""
     mayavi_app.setup_logger(logger, 'ibvpy.log', mode=self.log_mode)