Skip to content

Commit

Permalink
now adding oo params to saved data -- feature added
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakJariwala committed May 6, 2019
1 parent ef24a75 commit 36e3dcd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,14 @@ def x_y_scan(self):
self.pi_device.MVR(axes=self.axes, values=[-x_scan_size, y_step])

self.ui.status_textBrowser.append("Scan Complete!\nSaving Data...")
# TODO add ocean optics acquisition params to the save dict

save_dict = {"Wavelengths": self.spec.wavelengths(), "Intensities": data_array,
"Scan Parameters":{"X scan start (um)": x_start, "Y scan start (um)": y_start,
"X scan size (um)": x_scan_size, "Y scan size (um)": y_scan_size,
"X step size (um)": x_step, "Y step size (um)": y_step}
"X step size (um)": x_step, "Y step size (um)": y_step},
"OceanOptics Parameters":{"Integration Time (ms)": self.ui.intg_time_spinBox.value(),
"Scans Averages": self.ui.scan_to_avg_spinBox.value(),
"Correct Dark Counts": self.ui.correct_dark_counts_checkBox.isChecked()}
}

pickle.dump(save_dict, open(self.save_folder+"/"+self.ui.lineEdit.text()+"_raw_PL_spectra_data.pkl", "wb"))
Expand Down

0 comments on commit 36e3dcd

Please sign in to comment.