Beispiel #1
0
def end(domain):
    """
        End processes
    """
    # Stopping timer
    StoneX.logger.info(StoneX.timer(False))

    # Saving the log file
    StoneX.shutil.copy(StoneX.main_file + ".log", domain.name + "/")
Beispiel #2
0
def init():
    """
        Import all required modules.
    """
    global sys, np, StoneX
    # Path to the module
    module_path = '/Users/zorg/These/Documents/Programmes/Python_Modules/StoneX_project/'

    # Define module path
    import sys
    sys.path.append(module_path)

    # Import numpy
    import numpy as np

    # Importing StoneX module
    import StoneX

    # Starting timer
    StoneX.timer(True)