20e6b6cbe5f317794455a4d349e75393a4fed5a3,acoular/fileimport.py,bk_mat_import,get_data,#bk_mat_import#,161

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_freq)
        ac.append(data)
        f5h.close()
        td.name = name

After Change


        // 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")
        f5h.set_node_attribute(ac,"sample_freq",sample_freq)
        f5h.append_data(ac,data)
        f5h.close()
        td.name = name
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


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


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: 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