20e6b6cbe5f317794455a4d349e75393a4fed5a3,acoular/fileimport.py,datx_import,get_data,#datx_import#Any#,313

Before Change


                td.h5f.close()
        // TODO problems with already open h5 files from other instances
        f5h = tables.open_file(name, mode = "w")
        ac = f5h.create_earray(f5h.root, "time_data", \
            tables.atom.Float32Atom(), (0, numchannels))
        ac.set_attr("sample_freq", sample_rate)
        block_data = \
            zeros((128*d_files[channels[0].d_file].num_samples_per_block, \
                numchannels), "Float32")

After Change


            if td.h5f !=  None:
                td.h5f.close()
        // TODO problems with already open h5 files from other instances
        file = _get_h5file_class()
        f5h = file(name, mode = "w")
        f5h.create_extendable_array(
                "time_data", (0, numchannels), "float32")
        ac = f5h.get_data_by_reference("time_data")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: acoular/acoular
Commit Name: 20e6b6cbe5f317794455a4d349e75393a4fed5a3
Time: 2019-09-04
Author: kujawski.ad@gmail.com
File Name: acoular/fileimport.py
Class Name: datx_import
Method Name: get_data


Project Name: acoular/acoular
Commit Name: 20e6b6cbe5f317794455a4d349e75393a4fed5a3
Time: 2019-09-04
Author: kujawski.ad@gmail.com
File Name: acoular/fileimport.py
Class Name: td_import
Method Name: get_data


Project Name: acoular/acoular
Commit Name: 20e6b6cbe5f317794455a4d349e75393a4fed5a3
Time: 2019-09-04
Author: kujawski.ad@gmail.com
File Name: acoular/fileimport.py
Class Name: csv_import
Method Name: get_data


Project Name: acoular/acoular
Commit Name: 20e6b6cbe5f317794455a4d349e75393a4fed5a3
Time: 2019-09-04
Author: kujawski.ad@gmail.com
File Name: acoular/fileimport.py
Class Name: bk_mat_import
Method Name: get_data