

def init(LoadFiles = 0):
    import os
    global coefficients
    global MinimalFittingLimit
    global UpwardsOn
    global PlotBuffer
    global LimitForCorrelation
    global PlotTheLowPassDetection
    global ChimeraLowPass
    global minmalEventLengthPoints
    global AxopatchLowPassForDetection

    ## Analysis Parameters
    ChimeraLowPass = 10e3
    AxopatchLowPassForDetection = 0
    PlotTheLowPassDetection = 1

    minmalEventLengthPoints = 50e-6  # seconds
    MinimalFittingLimit = 100e-3  # FIT TO MIN VALUE EVENTS SHORTER THAN X seconds
    LimitForCorrelation = 500e-6
    UpwardsOn = 1
    PlotBuffer = 100e-3  # seconds
    OutputFolder = '/Users/mukeshchand/Downloads/Angel-Martin-MariaFyta/Output'
    coefficients = {}
    #Channel 1: Axopatch or Chimera
    coefficients['i1'] = {'a': 0.9999, 'E': 0, 'S': 5, 'eventlengthLimit': 2, 'delta': 0.001e-9,}


## Others
    global baseline
    baseline = 500

    global fitOn
    fitOn = 1