src/jpyEDM_v0.py
def RunButtonClicked( b ):
    '''Call the wrapper interface to pyEDM for the specified method'''
    global dataFrameOut
    global validLib

    dfOutput.clear_output()
    UpdateArgs()

    Widgets['running'].value = True # Display checkbox for busy EDM
    sleep( 0.05 ) # Let the running widget update before calls/threads

    method = Widgets['method'].value # Simplex SMap CCM...

    if len( args.CE ) and \
       method in ['Simplex', 'SMap', 'Embed Dimension',
                  'Predict Interval', 'Predict Nonlinear'] :
        validLib = dataFrameIn.eval( args.CE )
    else :
        validLib = []

    try: # Catch exceptions from pyEDM
        if 'Simplex' in method :
            dataFrameOut = Simplex_()
        elif 'SMap' in method :
            dataFrameOut = SMap_()
        elif 'CCM' in method :
            dataFrameOut = CCM_()
        elif 'Multiview' in method :
            dataFrameOut = Multiview_()
        elif 'Embed Dimension' in method :
            dataFrameOut = EmbedDimension_()
        elif 'Predict Interval' in method :
            dataFrameOut = PredictInterval_()
        elif 'Predict Nonlinear' in method :
            dataFrameOut = PredictNonlinear_()
        elif 'Embed' in method :
            dataFrameOut = Embed_()
        elif 'Mutual Information' in method :
            dataFrameOut = MutualInfo()
        elif 'Data' in method :
            ViewData()
        else :
            with dfOutput:
                display( print( "Invalid method" ) )

    except ( RuntimeError, OSError, Warning ) as error:
        dfOutput.clear_output()
        with dfOutput :
            display( print( error ) )
        Plot2DOutput.clear_output()
        with Plot2DOutput :
            display( print( error ) )
        Plot3DOutput.clear_output()
        with Plot3DOutput :
            display( print( error ) )

    Widgets['running'].value = False
Call the wrapper interface to pyEDM for the specified method
Call the wrapper interface to pyEDM for the specified method
Call the wrapper interface to pyEDM for the specified method
def RunButtonClicked( b ):
    global dataFrameOut
    global validLib
    dfOutput.clear_output()
    UpdateArgs()
    Widgets['running'].value = True 
    sleep( 0.05 ) 
    method = Widgets['method'].value 
    if len( args.CE ) and \
       method in ['Simplex', 'SMap', 'Embed Dimension',
                  'Predict Interval', 'Predict Nonlinear'] :
        validLib = dataFrameIn.eval( args.CE )
    else :
        validLib = []
    try: 
        if 'Simplex' in method :
            dataFrameOut = Simplex_()
        elif 'SMap' in method :
            dataFrameOut = SMap_()
        elif 'CCM' in method :
            dataFrameOut = CCM_()
        elif 'Multiview' in method :
            dataFrameOut = Multiview_()
        elif 'Embed Dimension' in method :
            dataFrameOut = EmbedDimension_()
        elif 'Predict Interval' in method :
            dataFrameOut = PredictInterval_()
        elif 'Predict Nonlinear' in method :
            dataFrameOut = PredictNonlinear_()
        elif 'Embed' in method :
            dataFrameOut = Embed_()
        elif 'Mutual Information' in method :
            dataFrameOut = MutualInfo()
        elif 'Data' in method :
            ViewData()
        else :
            with dfOutput:
                display( print( "Invalid method" ) )
    except ( RuntimeError, OSError, Warning ) as error:
        dfOutput.clear_output()
        with dfOutput :
            display( print( error ) )
        Plot2DOutput.clear_output()
        with Plot2DOutput :
            display( print( error ) )
        Plot3DOutput.clear_output()
        with Plot3DOutput :
            display( print( error ) )
    Widgets['running'].value = False
def RunButtonClicked ( b ) : global dataFrameOut global validLib dfOutput . clear_output ( ) UpdateArgs ( ) Widgets [ 'running' ] . value = True sleep ( 0.05 ) method = Widgets [ 'method' ] . value if len ( args . CE ) and method in [ 'Simplex' , 'SMap' , 'Embed Dimension' , 'Predict Interval' , 'Predict Nonlinear' ] : validLib = dataFrameIn . eval ( args . CE ) else : validLib = [ ] try : if 'Simplex' in method : dataFrameOut = Simplex_ ( ) elif 'SMap' in method : dataFrameOut = SMap_ ( ) elif 'CCM' in method : dataFrameOut = CCM_ ( ) elif 'Multiview' in method : dataFrameOut = Multiview_ ( ) elif 'Embed Dimension' in method : dataFrameOut = EmbedDimension_ ( ) elif 'Predict Interval' in method : dataFrameOut = PredictInterval_ ( ) elif 'Predict Nonlinear' in method : dataFrameOut = PredictNonlinear_ ( ) elif 'Embed' in method : dataFrameOut = Embed_ ( ) elif 'Mutual Information' in method : dataFrameOut = MutualInfo ( ) elif 'Data' in method : ViewData ( ) else : with dfOutput : display ( print ( "Invalid method" ) ) except ( RuntimeError , OSError , Warning ) as error : dfOutput . clear_output ( ) with dfOutput : display ( print ( error ) ) Plot2DOutput . clear_output ( ) with Plot2DOutput : display ( print ( error ) ) Plot3DOutput . clear_output ( ) with Plot3DOutput : display ( print ( error ) ) Widgets [ 'running' ] . value = False
Call the wrapper interface to pyEDM for the specified method
Call the wrapper interface to pyEDM for the specified method
'''Call the wrapper interface to pyEDM for the specified method''' # Display checkbox for busy EDM # Let the running widget update before calls/threads # Simplex SMap CCM... # Catch exceptions from pyEDM
b