Пример #1
0
def DC2DfwdWidget():
    # print xzlocs
    Q = interact(DC2DfwdWrapper,
                 rhohalf=FloatSlider(min=10, max=1000, step=1, value=1000),
                 rhosph=FloatSlider(min=10, max=1000, step=1, value=50),
                 xc=FloatSlider(min=-40, max=40, step=1, value=0),
                 zc=FloatSlider(min=-20, max=0, step=1, value=-10),
                 r=FloatSlider(min=0, max=15, step=0.5, value=5),
                 predmis=ToggleButtons(options=['pred', 'mis']),
                 surveyType=ToggleButtons(
                     options=['DipoleDipole', 'PoleDipole', 'DipolePole']))
    return Q
Пример #2
0
def interactive_responseFct():
    app = interactive(
        plot_ResponseFct,
        h_boom=FloatSlider(min=h_boom,
                           max=h_boom_max,
                           step=0.1,
                           value=h_boom,
                           continuous_update=False),
        h_1=FloatSlider(min=0.,
                        max=zmax,
                        value=0.1,
                        step=0.1,
                        continuous_update=False),
        sigma_1=FloatSlider(min=sigmin,
                            max=sigmax,
                            value=sigmin,
                            step=sigmin,
                            continuous_update=False),
        sigma_2=FloatSlider(min=sigmin,
                            max=sigmax,
                            value=sigmin,
                            step=sigmin,
                            continuous_update=False),
        orientation=ToggleButtons(options=['vertical', 'horizontal']))
    return app