Source code for sylib.library.plugins.export.adaf_exporters.plugin_hdf5_exporter

# This file is part of Sympathy for Data.
# Copyright (c) 2013, 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 adaf
from sylib.export import adaf as exportadaf
from sympathy.api import qt2 as qt_compat
QtGui = qt_compat.import_module('QtGui')


class DataExportHDF5Widget(exportadaf.TabbedDataExportWidget):
    pass


[docs] class DataExportHDF5(exportadaf.TabbedADAFDataExporterBase): """Exporter for HDF5 files.""" EXPORTER_NAME = "HDF5" DISPLAY_NAME = 'SyData' FILENAME_EXTENSION = 'sydata' def __init__(self, parameters): super().__init__(parameters) def parameter_view(self, input_list): return DataExportHDF5Widget(self._parameters, input_list) def export_data(self, adafdata, fq_outfilename, progress=None): """Export ADAF to HDF5.""" with adaf.File(filename=fq_outfilename, mode='w', source=adafdata): pass progress(100.)