Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed 181K_GN_Package.zip
Binary file not shown.
Binary file removed 191K_GN_Package.zip
Binary file not shown.
17 changes: 0 additions & 17 deletions 2023May_100ns_alpha.csv

This file was deleted.

Binary file removed 217K_GN_Package.zip
Binary file not shown.
Binary file removed 221K_GN_Package.zip
Binary file not shown.
Binary file removed 234K_GN_Package.zip
Binary file not shown.
20 changes: 13 additions & 7 deletions AnalyzePDE.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def plot_spe(
}
df = pd.DataFrame(data)
df.to_csv(out_file)
plt.show()

def plot_CA(self, color: str = "blue", out_file: str = None) -> None:
"""
Expand All @@ -343,6 +344,7 @@ def plot_CA(self, color: str = "blue", out_file: str = None) -> None:
fig = plt.figure()

data_x = self.ov
# data_x = self.bias_vals
data_x_err = self.bias_err
data_y = self.CA_vals
data_y_err = self.CA_err
Expand Down Expand Up @@ -403,6 +405,8 @@ def plot_CA(self, color: str = "blue", out_file: str = None) -> None:
}
df = pd.DataFrame(data)
df.to_csv(out_file)
else:
plt.show()

def plot_CA_rms(self, color: str = "blue", out_file: str = None) -> None:
"""
Expand All @@ -424,6 +428,8 @@ def plot_CA_rms(self, color: str = "blue", out_file: str = None) -> None:

data_x = self.bias_vals
data_x_err = self.bias_err
# data_x = self.ov
# data_x_err = self.ov_err
data_y = self.CA_rms_vals
data_y_err = self.CA_rms_err

Expand Down Expand Up @@ -463,6 +469,8 @@ def plot_CA_rms(self, color: str = "blue", out_file: str = None) -> None:
}
df = pd.DataFrame(data)
df.to_csv(out_file)
else:
plt.show()

# I HAVE A SECRET TO TELL YOU! (it was reed who wrote that message and thwy are pinning it on me)

Expand Down Expand Up @@ -760,7 +768,7 @@ def plot_num_det_photons(self, color: str = "purple", out_file: str = None) -> N
fig = plt.figure()

data_x = self.ov
data_x_err = self.bias_err
data_x_err = self.bias_err # use error from voltage source, not over correlated error from OV
data_y = self.num_det_photons
data_y_err = self.num_det_photons_err

Expand Down Expand Up @@ -790,6 +798,7 @@ def plot_num_det_photons(self, color: str = "purple", out_file: str = None) -> N
ylow, yhigh = plt.ylim()
plt.ylim(-1, yhigh * 1.1)
plt.tight_layout()
plt.show()

if out_file:
x_label = "Overvoltage [V]"
Expand Down Expand Up @@ -872,13 +881,10 @@ def plot_PDE(
plt.legend(loc="lower left")
plt.tight_layout()
if out_file:
x_label = "Overvoltage [V]"
y_label = "Photon Detection Efficiency"
data = {
x_label: data_x,
x_label + " error": data_x_err,
y_label: data_y,
y_label + " error": data_y_err,
'ov': data_x, 'ov error': data_x_err,
'amps': self.alpha_vals, 'amps error': self.alpha_err,
'bias': self.bias_vals, 'bias err': self.bias_err
}
df = pd.DataFrame(data)
df.to_csv(out_file)
Expand Down
Loading