Source code for node_export_adafs

# This file is part of Sympathy for Data.
# Copyright (c) 2013, 2017, Combine Control Systems AB
#
# SYMPATHY FOR DATA COMMERCIAL LICENSE
# You should have received a link to the License with Sympathy for Data.
from sympathy.api import node as synode
from sympathy.api.nodeconfig import Port, Ports
from sylib import docs
from sylib.export import adaf as exportadaf
from sylib.export import base


[docs] class ExportADAFs(base.ExportMultiple, synode.Node): __doc__ = docs.EXPORTER_DOCS + """ Filename strategies =================== Apart from the normal way of specifying a filename this node also supports two strategies for extracting filenames from information stored in the ADAFs: - **Source identifier as name** Use the source identifier in the ADAFs as filenames. - **Column with name** Specify a column in the metadata container where the first element is the filename. """ name = 'Export ADAFs' description = 'Export ADAFs' icon = 'adaf_export.svg' plugins = (exportadaf.TabbedADAFDataExporterBase, ) author = 'Alexander Busck' nodeid = 'org.sysess.sympathy.export.exportadafs' related = [ 'org.sysess.sympathy.data.adaf.importadaf', 'org.sysess.sympathy.data.adaf.importadafs', ] inputs = Ports([Port.ADAFs('Input ADAFs', name='port0'), Port.Datasources( 'External filenames', name='port1', n=(0, 1, 0))]) parameters = base.base_params()