def extract_data(self): self.raw_data_dict = OrderedDict() data_file = MeasurementAnalysis(timestamp=self.timestamp, auto=True, TwoD=False) dateobj = a_tools.datetime_from_timestamp(self.timestamp) self.timestamps = [self.timestamp] self.raw_data_dict['timestamps'] = [self.timestamp] self.raw_data_dict['datetime'] = np.array([dateobj], dtype=datetime.datetime) temp = data_file.load_hdf5data() data_file.get_naming_and_values() self.raw_data_dict['scaling_amp'] = data_file.sweep_points self.raw_data_dict['SNR'] = np.array(data_file.measured_values[0], dtype=float) self.raw_data_dict['F_d'] = np.array(data_file.measured_values[1], dtype=float) self.raw_data_dict['F_a'] = np.array(data_file.measured_values[2], dtype=float) self.raw_data_dict['folder'] = data_file.folder
def extract_data(self): self.raw_data_dict = OrderedDict() data_file = MeasurementAnalysis(label=self.labels[0], timestamp=self.timestamp, auto=True, TwoD=False) dateobj = a_tools.datetime_from_timestamp(self.timestamp) self.timestamps = [self.timestamp] self.raw_data_dict['timestamps'] = [self.timestamp] self.raw_data_dict['datetime'] = np.array([dateobj], dtype=datetime.datetime) temp = data_file.load_hdf5data() data_file.get_naming_and_values() self.raw_data_dict['scaling_amp'] = data_file.sweep_points self.raw_data_dict['dephasing'] = np.array( data_file.measured_values[0], dtype=float) self.wrap_phase = self.options_dict.get('wrap_phase', 0) phase_raw = np.array(data_file.measured_values[1], dtype=float) self.raw_data_dict['phase'] = (phase_raw + self.wrap_phase) % 360 - self.wrap_phase self.raw_data_dict['folder'] = data_file.folder