Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Feb 19, 2025
1 parent ae8ad68 commit 743f9ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion optika/sensors/_materials/_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
_cce_backsurface = 0.21
_fano_noise = 0.1 * u.electron / u.photon


def quantum_yield_ideal(
wavelength: u.Quantity | na.AbstractScalar,
) -> na.AbstractScalar:
Expand Down Expand Up @@ -812,7 +813,7 @@ def electrons_measured(
photons_absorbed_complete = photons_absorbed - photons_absorbed_partial

mean_p = n0 + (1 - n0) / (aW) + (n0 - 1) / (np.exp(aW) - 1)
var_p = (1 / 4) * np.square(n0 - 1) * (4 / np.square(aW) - 1 / np.square(np.sinh(aW / 2)))
var_p = np.square(n0 - 1) * (4 / np.square(aW) - 1 / np.square(np.sinh(aW / 2))) / 4

mean_n = iqy
var_n = f * mean_n
Expand Down

0 comments on commit 743f9ab

Please sign in to comment.