:py:mod:`file_conversion` ========================= .. py:module:: file_conversion Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: file_conversion.Pt3Reader file_conversion.CSVReader file_conversion.PhotonHDF5Reader file_conversion.FileReader file_conversion.ConvertFileDialog Attributes ~~~~~~~~~~ .. autoapisummary:: file_conversion.logger file_conversion.convert_file_dialog_file file_conversion.pt3_file .. py:data:: logger :value: "'file_conversion'" .. py:data:: convert_file_dialog_file .. py:class:: Pt3Reader(pt3_file_path) Class for reading .pt3 files .. py:attribute:: _file_path .. py:method:: add_particle_to_h5(h5_file) .. py:class:: CSVReader(csv_file_path) Class for reading .csv files .. py:attribute:: _file_path .. py:class:: PhotonHDF5Reader(hdf5_filepath) Class for reading Photon-HDF5 files .. py:attribute:: _file_path .. py:attribute:: macro_times .. py:attribute:: micro_times .. py:attribute:: file_time .. py:attribute:: comment_field .. py:attribute:: creator_name :value: "''" .. py:class:: FileReader(src_format, file_path, channel=None) Class for reading source files. A relevant lower-level class (currently either Pt3Reader or CSVReader) is instantiated to read the source file. :param src_format: Source file format (csv or pt3) :type src_format: string :param file_path: Source file path :type file_path: string :param channel: Photon channel number (only for pt3) :type channel: int .. py:attribute:: format .. py:attribute:: file_path .. py:class:: ConvertFileDialog(mainwindow) Bases: :py:obj:`PyQt5.QtWidgets.QDialog`, :py:obj:`UI_Convert_File_Dialog` .. py:attribute:: mainwindow .. py:attribute:: parent .. py:attribute:: _source_path :value: 'None' .. py:attribute:: _export_path :value: 'None' .. py:method:: set_source_format() .. py:method:: set_source_folder() .. py:method:: set_export_file() .. py:method:: set_export_folder() .. py:method:: change_spectra_edt() .. py:method:: change_bulk_edt() .. py:method:: check_ready() .. py:method:: convert() .. py:data:: pt3_file