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.