Пример #1
0
def test_bokehDrawQAWithXarray():
    """
    Standard drawing test
    :return: None
    """
    QAlayout: str = '((0,commonX=0),(1),(2,x_visible=1),commonX=2,x_visible=1,y_visible=0,plot_height=250,plot_width=1000)'
    # xxx=bokehDraw(treeQA,"meanMIP>0",varX,"meanMIPele:meanMIPele:resolutionMIP","MIPquality_Warning",widgets,0,size=6,tooltip=tooltips,x_axis_type='datetime',layout=layout)
    bokehDraw(treeQA,
              "meanMIP>0",
              varX,
              "meanMIPele:meanMIPele:resolutionMIP",
              "MIPquality_Warning",
              widgets,
              0,
              size=6,
              tooltip=tooltips,
              layout=QAlayout)
Пример #2
0
def test_bokehDrawQAStandard():
    """
    Standard bok
    :return: None
    """
    QAlayout: str = "((0),(1),(2,x_visible=1),commonX=2,x_visible=1,y_visible=0,plot_height=250,plot_width=1000)"
    bokehDraw(treeQA,
              "meanMIP>0",
              "chunkMedian",
              varDraw,
              "MIPquality_Warning",
              widgets,
              0,
              commonX=1,
              size=6,
              tooltip=tooltips,
              x_axis_type='datetime',
              layout=QAlayout)
Пример #3
0
def test_bokehDrawQAYerr():
    """
    Test with error bars
    :return: None
    """
    QAlayout: str = "((0),(1),(2,x_visible=1),commonX=2,x_visible=1,y_visible=0,plot_height=250,plot_width=1000)"
    xxxErr = bokehDraw(treeQA,
                       "meanMIP>0",
                       "chunkMedian",
                       "meanMIP:meanMIPele:resolutionMIP",
                       "MIPquality_Warning",
                       widgets,
                       0,
                       errY="meanMIPErr:meanMIPeleErr:resolutionMIPErr",
                       commonX=1,
                       size=6,
                       tooltip=tooltips,
                       x_axis_type='datetime',
                       layout=QAlayout)
Пример #4
0
def test_Draw():
    df = pd.DataFrame(np.random.randint(0, 100, size=(100, 4)),
                      columns=list('ABCD'))
    initMetadata(df)
    df.head(10)
    df.meta.metaData = {
        'A.AxisTitle': "A (cm)",
        'B.AxisTitle': "B (cm/s)",
        'C.AxisTitle': "C (s)",
        'D.AxisTitle': "D (a.u.)"
    }
    testLayout = "((0,1),(2,x_visible=0),(3), plot_height=200,plot_width=800,commonX=3,commonY=3,y_visible=0)"
    bokehFigure = bokehDraw(
        df,
        "A>0",
        "A",
        "A:B:C:D",
        "C",
        "slider.A(0,100.1,0,1),slider.B(0,100,100,100,300)",
        None,
        layout=testLayout)