Exemple #1
0
    def __init__(self,
                 workflow,
                 title,
                 is_batch=False,
                 default_export_filename=''):
        self.export_op = None
        self._default_export_filename = default_export_filename

        self.__topLevelOperator = OpMultiLaneWrapper(
            OpTrackingBaseDataExport,
            parent=workflow,
            promotedSlotNames=set(['RawData', 'Inputs', 'RawDatasetInfo']))

        extra_serial_slots = [
            SerialSlot(self.topLevelOperator.SelectedPlugin),
            SerialSlot(self.topLevelOperator.SelectedExportSource),
            SerialDictSlot(self.topLevelOperator.AdditionalPluginArguments)
        ]
        self._serializers = [
            DataExportSerializer(self.topLevelOperator, title,
                                 extra_serial_slots)
        ]

        super(TrackingBaseDataExportApplet, self).__init__(workflow,
                                                           title,
                                                           isBatch=is_batch)
    def __init__(
        self,
        workflow,
        title,
        is_batch: bool = False,
        default_export_filename: str = "",
        pluginExportFunc: Optional[PluginExportCallable] = None,
    ):
        self.export_op = None
        self._default_export_filename = default_export_filename

        self.__topLevelOperator = OpMultiLaneWrapper(
            OpTrackingBaseDataExport,
            parent=workflow,
            promotedSlotNames=set(["RawData", "Inputs", "RawDatasetInfo"]))

        extra_serial_slots = [
            SerialSlot(self.topLevelOperator.SelectedPlugin),
            SerialSlot(self.topLevelOperator.SelectedExportSource),
            SerialDictSlot(self.topLevelOperator.AdditionalPluginArguments),
        ]
        self._serializers = [
            DataExportSerializer(self.topLevelOperator, title,
                                 extra_serial_slots)
        ]
        self._pluginExportFunc = pluginExportFunc

        super(TrackingBaseDataExportApplet, self).__init__(workflow,
                                                           title,
                                                           isBatch=is_batch)
    def __init__( self, workflow, title, isBatch=False ):
        # Our operator is a subclass of the generic data export operator
        self._topLevelOperator = OpMultiLaneWrapper( OpNansheDataExport, parent=workflow,
                                         promotedSlotNames=set(['RawData', 'Inputs', 'RawDatasetInfo']) )
        self._gui = None
        self._title = title
        self._serializers = [ DataExportSerializer(self._topLevelOperator, title) ]

        # Base class init
        super(NansheDataExportApplet, self).__init__(workflow, title, isBatch)
    def __init__(self, workflow, title, isBatch=False):
        # Our operator is a subclass of the generic data export operator
        self._topLevelOperator = OpMultiLaneWrapper(
            OpPixelClassificationDataExport,
            parent=workflow,
            promotedSlotNames=set(["RawData", "Inputs", "RawDatasetInfo", "ConstraintDataset"]),
        )
        self._gui = None
        self._title = title
        self._serializers = [DataExportSerializer(self._topLevelOperator, title)]

        # Base class init
        super(PixelClassificationDataExportApplet, self).__init__(workflow, title, isBatch)
    def __init__(self, workflow, title, isBatch=False):
        self._topLevelOperator = OpMultiLaneWrapper(
            OpNNClassificationDataExport,
            parent=workflow,
            promotedSlotNames=set(["RawData", "Inputs", "RawDatasetInfo"]),
        )

        self._title = title
        self._serializers = [
            DataExportSerializer(self._topLevelOperator, title)
        ]
        # Base class init
        super(NNClassificationDataExportApplet,
              self).__init__(workflow, title, isBatch)
Exemple #6
0
    def __init__(self, workflow, title, isBatch=False):
        # Our operator is a subclass of the generic data export operator
        self._topLevelOperator = OpMultiLaneWrapper(
            OpPixelClassificationDataExport,
            parent=workflow,
            promotedSlotNames=set(
                ['RawData', 'Input', 'RawDatasetInfo', 'ConstraintDataset']))
        # Users can temporarily disconnect the 'transaction'
        #  slot to force all slots to be applied atomically.
        self._topLevelOperator.TransactionSlot.setValue(True)

        super(PixelClassificationDataExportApplet,
              self).__init__(title, syncWithImageIndex=not isBatch)

        self._gui = None
        self._title = title
        self._serializers = [
            DataExportSerializer(self._topLevelOperator, title)
        ]
Exemple #7
0
    def __init__(self, workflow, title, opCounting, isBatch=False):
        # Our operator is a subclass of the generic data export operator
        self._topLevelOperator = OpMultiLaneWrapper(
            OpCountingDataExport,
            parent=workflow,
            promotedSlotNames=set(["RawData", "Inputs", "RawDatasetInfo"]))
        self._gui = None
        self._title = title
        self._serializers = [
            DataExportSerializer(
                self._topLevelOperator, title,
                [SerialSlot(self._topLevelOperator.CsvFilepath)])
        ]

        self.opCounting = opCounting

        # Base class init
        super(CountingDataExportApplet, self).__init__(workflow, title,
                                                       isBatch)