-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created SNR vs Wavelength notebook #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent job! You solved a very tough problem, you can pat yourself on the back for that. There's just a couple cleanup things to resolve and then we're good to merge. Let's get this bread!
|
||
a_i = math.pi * (self.d_i / 2) ** 2 | ||
a_i = math.pi * (self.image_diameter / 2) ** 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this method already exists on line 40. Let's remove this duplicate.
|
||
# print("n well", self.n_well) | ||
# print("n bit", self.n_bit) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove unused print statements to keep the code clean.
payload_designer/systems/payloads.py
Outdated
"""Get the ratio of the light passing through slit to the image of the | ||
foreoptic.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
Get the ratio of the light area passing through the slit to the area of the image of the foreoptic.
payload_designer/systems/payloads.py
Outdated
# print("wavelength", wavelength) | ||
# print("ratio", self.get_ratio_cropped_light_through_slit()) | ||
# print("pixel area", self.sensor.get_pixel_area()) | ||
# print("f num", self.foreoptic.get_f_number()) | ||
# print("QE", self.sensor.efficiency(wavelength).decompose() * unit.electron) | ||
# print("efficiency", self.sensor.efficiency(wavelength)) | ||
# print("transmittance", self.get_transmittance()) | ||
# print("area", self.slit.get_area()) | ||
# print("radiance", radiance(wavelength)) | ||
# print("sensor dt", self.sensor.dt) | ||
# print("n bin", self.sensor.n_bin) | ||
# print("dark noise", self.sensor.get_dark_noise()) | ||
# print("quantization noise", self.sensor.get_quantization_noise()) | ||
# print("noise read", self.sensor.noise_read) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove commented code once its no longer needed.
LOG.info(f"SNR: {snr}") | ||
|
||
|
||
def test_get_f_number_units(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a docstring here for clarity.
No description provided.