dd09da1475eede137f1442689149e8331c0731f3,hyperspy/io_plugins/protochips.py,ProtochipsCSV,_read_all_metadata_header,#ProtochipsCSV#,214

Before Change



    def _read_all_metadata_header(self):
        i = 1
        param, value = self._parse_metadata_header(self.raw_header[i])
        while "User" not in param:  // user should be the last of the header
            if "Calibration file" in param:
                self.calibration_file = value

After Change


                self.__dict__[attr_name] = value
            i += 1
            try:
                param, value = self._parse_metadata_header(f.readline())
            except ValueError:
                // when the last line of header does not contain "User",
                // possibly some old file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hyperspy/hyperspy
Commit Name: dd09da1475eede137f1442689149e8331c0731f3
Time: 2018-10-15
Author: eric.prestat@gmail.com
File Name: hyperspy/io_plugins/protochips.py
Class Name: ProtochipsCSV
Method Name: _read_all_metadata_header


Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_samples_by_string


Project Name: lingpy/lingpy
Commit Name: 875a33806acea37f602d0ad20fb77cd42432bbb6
Time: 2013-11-08
Author: bambooforest@gmail.com
File Name: scripts/tokenize/tokenize_pad.py
Class Name:
Method Name: