Ejemplo n.º 1
0
    from Vision.matplotlibNodes import PlotDateNE
    PlotDate_0 = PlotDateNE(constrkw={},
                            name='PlotDate',
                            library=matplotliblib)
    masterNet.addNode(PlotDate_0, 59, 360)
    PlotDate_0.inputPortByName['tz'].widget.set("US/Pacific", run=False)
    apply(PlotDate_0.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore PlotDateNE named PlotDate in network masterNet"
    print_exc()
    PlotDate_0 = None

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_1 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
    masterNet.addNode(ReadTable_1, 102, 17)
    ReadTable_1.inputPortByName['filename'].widget.set(
        "Data/plot_date_data.dat", run=False)
    ReadTable_1.inputPortByName['sep'].widget.set(",", run=False)
    ReadTable_1.inputPortByName['datatype'].widget.set("float", run=False)
    apply(ReadTable_1.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore ReadTable named ReadTable in network masterNet"
    print_exc()
    ReadTable_1 = None

try:
    ## saving node Draw Area ##
    from Vision.matplotlibNodes import MPLDrawAreaNE
    Draw_Area_2 = MPLDrawAreaNE(constrkw={},
Ejemplo n.º 2
0
    from Vision.matplotlibNodes import ContourNE
    Contour_16 = ContourNE(constrkw={}, name='Contour', library=matplotliblib)
    masterNet.addNode(Contour_16, 204, 296)
    Contour_16.inputPortByName['contour'].widget.set("filledcontour",
                                                     run=False)
    Contour_16.inputPortByName['length_colors'].widget.set("10", run=False)
    apply(Contour_16.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore ContourNE named Contour in network masterNet"
    print_exc()
    Contour_16 = None

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_17 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
    masterNet.addNode(ReadTable_17, 12, 20)
    ReadTable_17.inputPortByName['filename'].widget.set(
        "Data/contour_data_1.dat", run=False)
    ReadTable_17.inputPortByName['sep'].widget.set(",", run=False)
    ReadTable_17.inputPortByName['datatype'].widget.set("float", run=False)
    apply(ReadTable_17.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore ReadTable named ReadTable in network masterNet"
    print_exc()
    ReadTable_17 = None

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_18 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
Ejemplo n.º 3
0
from traceback import print_exc
## loading libraries ##
from Vision.matplotlibNodes import matplotliblib
masterNet.getEditor().addLibraryInstance(matplotliblib,
                                         "Vision.matplotlibNodes",
                                         "matplotliblib")

from Vision.StandardNodes import stdlib
masterNet.getEditor().addLibraryInstance(stdlib, "Vision.StandardNodes",
                                         "stdlib")

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_92 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
    masterNet.addNode(ReadTable_92, 497, 23)
    ReadTable_92.inputPortByName['filename'].widget.set(
        "Data/pcolormesh_data_3.dat", run=False)
    ReadTable_92.inputPortByName['sep'].widget.set(",", run=False)
    ReadTable_92.inputPortByName['datatype'].widget.set("float", run=False)
    apply(ReadTable_92.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore ReadTable named ReadTable in network masterNet"
    print_exc()
    ReadTable_92 = None

try:
    ## saving node As Type ##
    from Vision.StandardNodes import AsType
    As_Type_93 = AsType(constrkw={}, name='As Type', library=stdlib)
Ejemplo n.º 4
0
try:
    ## saving node Contour ##
    from Vision.matplotlibNodes import ContourNE
    Contour_24 = ContourNE(constrkw={}, name='Contour', library=matplotliblib)
    masterNet.addNode(Contour_24, 215, 317)
    Contour_24.inputPortByName['length_colors'].widget.set("10", run=False)
except:
    print "WARNING: failed to restore ContourNE named Contour in network masterNet"
    print_exc()
    Contour_24 = None

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_25 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
    masterNet.addNode(ReadTable_25, 12, 20)
    ReadTable_25.inputPortByName['filename'].widget.set(
        "Data/contour_data_1.dat", run=False)
    ReadTable_25.inputPortByName['sep'].widget.set(",", run=False)
    ReadTable_25.inputPortByName['datatype'].widget.set("float", run=False)
    apply(ReadTable_25.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore ReadTable named ReadTable in network masterNet"
    print_exc()
    ReadTable_25 = None

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_26 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
Ejemplo n.º 5
0
                               name='Histogram',
                               library=matplotliblib)
    masterNet.addNode(Histogram_74, 536, 326)
    Histogram_74.inputPortByName['bins'].widget.set(50, run=False)
    Histogram_74.inputPortByName['patch_facecolor'].widget.set("green",
                                                               run=False)
    apply(Histogram_74.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore HistogramNE named Histogram in network masterNet"
    print_exc()
    Histogram_74 = None

try:
    ## saving node ReadTable ##
    from Vision.StandardNodes import ReadTable
    ReadTable_75 = ReadTable(constrkw={}, name='ReadTable', library=stdlib)
    masterNet.addNode(ReadTable_75, 289, 24)
    ReadTable_75.inputPortByName['filename'].widget.set("Data/plot_data.dat",
                                                        run=False)
    ReadTable_75.inputPortByName['sep'].widget.set(",", run=False)
    ReadTable_75.inputPortByName['datatype'].widget.set("float", run=False)
    apply(ReadTable_75.configure, (), {'expanded': True})
except:
    print "WARNING: failed to restore ReadTable named ReadTable in network masterNet"
    print_exc()
    ReadTable_75 = None

try:
    ## saving node Plot ##
    from Vision.matplotlibNodes import PlotNE
    Plot_76 = PlotNE(constrkw={}, name='Plot', library=matplotliblib)