def data_export_applet(): op = Operator(graph=Graph()) dataExportApplet = TrackingBaseDataExportApplet(op, "Tracking Result Export") opTrackingBaseDataExport = dataExportApplet.topLevelOperator opTrackingBaseDataExport.SelectedPlugin.setValue("Fiji-MaMuT") opTrackingBaseDataExport.SelectedExportSource.setValue("Plugin") opTrackingBaseDataExport.AdditionalPluginArguments.setValue( {"bdvFilePath": "/tmp/bdv.xml"}) return dataExportApplet
def test_applet_deserialization(project_path, data_export_applet): with h5py.File(project_path, "w") as project_file: data_export_applet.dataSerializers[0].serializeToHdf5( project_file, project_path) op = Operator(graph=Graph()) data_export_applet = TrackingBaseDataExportApplet( op, "Tracking Result Export") with h5py.File(project_path, "r") as project_file: data_export_applet.dataSerializers[0].deserializeFromHdf5( project_file, project_path) opTrackingBaseDataExport = data_export_applet.dataSerializers[ 0].topLevelOperator assert opTrackingBaseDataExport.SelectedPlugin.value == "Fiji-MaMuT" assert opTrackingBaseDataExport.SelectedExportSource.value == "Plugin" assert opTrackingBaseDataExport.AdditionalPluginArguments.value[ "bdvFilePath"] == "/tmp/bdv.xml"
def __init__(self, parent = None): Operator.__init__(self, parent) self.countSetupOutputs = 0
def __init__(self, parent=None): Operator.__init__(self, parent) self.countSetupOutputs = 0
def __init__(self, *args, **kwargs): Operator.__init__(self, *args, **kwargs) self.Output.connect(self.Input)