Exemplo n.º 1
0
    def __init__(self):
        IPythonHandler.__init__(self)

        #: A shortcut for returning information on the environment.
        self.information = SimpleInformation()

        # Use our own calculation type.
        self._calculation_type = SimpleCalculation
    def __init__(self):
        IPythonHandler.__init__(self)

        #: A shortcut for returning information on the environment.
        self.information = SimpleInformation()

        # Use our own calculation type.
        self._calculation_type = SimpleCalculation
Exemplo n.º 3
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from hep_ipython_tools.ipython_handler import IPythonHandler

#: Create a single instance
handler = IPythonHandler()
    def __init__(self):
        IPythonHandler.__init__(self)

        # Use our own calculation type.
        self._calculation_type = BasicCalculation
    def __init__(self):
        IPythonHandler.__init__(self)

        self._calculation_type = DerivedCalculation
 def process(self, path, result_queue=None):
     """
     Shortcut for convenience.
     """
     return IPythonHandler.process(self, result_queue=result_queue, path=path)
    def test_default(self):
        handler = IPythonHandler()

        self.assertEqual(handler.log_files, [])
        self.assertEqual(handler._calculation_type, Calculation)
        self.assertIsInstance(handler.information, EnvironmentInformation)
    def __init__(self):
        IPythonHandler.__init__(self)

        self._calculation_type = DerivedCalculation