def export(self, version, export_dir):
        """
        Create prov entities and activities.
        """

        atts = [
            (PROV['type'], self.type),
            (PROV['label'], self.label),
        ]

        if version['num'] == "1.0.0":
            atts += [
                (NIDM_USER_SPECIFIED_THRESHOLD_TYPE, self.user_threshold_type),
                (PROV['value'], self.stat_threshold),
                (NIDM_P_VALUE_UNCORRECTED, self.p_uncorr_threshold),
                (NIDM_P_VALUE_FWER, self.p_corr_threshold)
                ]
        else:
            atts += [
                (PROV['type'], self.threshold_type),
                (PROV['value'], self.value)
                ]

        if self.equiv_thresh is not None:
            for equiv in self.equiv_thresh:
                atts += [
                    (NIDM_EQUIVALENT_THRESHOLD, equiv.id)
                ]

        self.add_attributes([(k, v) for k, v in atts if v is not None])
def export ( self , version , export_dir ) : atts = [ ( PROV [ 'type' ] , self . type ) , ( PROV [ 'label' ] , self . label ) , ] if version [ 'num' ] == "1.0.0" : atts += [ ( NIDM_USER_SPECIFIED_THRESHOLD_TYPE , self . user_threshold_type ) , ( PROV [ 'value' ] , self . stat_threshold ) , ( NIDM_P_VALUE_UNCORRECTED , self . p_uncorr_threshold ) , ( NIDM_P_VALUE_FWER , self . p_corr_threshold ) ] else : atts += [ ( PROV [ 'type' ] , self . threshold_type ) , ( PROV [ 'value' ] , self . value ) ] if self . equiv_thresh is not None : for equiv in self . equiv_thresh : atts += [ ( NIDM_EQUIVALENT_THRESHOLD , equiv . id ) ] self . add_attributes ( [ ( k , v ) for k , v in atts if v is not None ] )
Create prov entities and activities.