-
Couldn't load subscription status.
- Fork 5
feat/docs #27
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
feat/docs #27
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.
The explanation of the conversion_gain is not quite correct. I’ve added comments.
| # 2. Estimate parameters | ||
| params = compute_sensitivity(movie) | ||
| print(f"Estimated parameters:") | ||
| print(f" Conversion gain: {params['sensitivity']:.3f} ADU/photon") |
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.
units / photon
| params = compute_sensitivity(movie) | ||
| print(f"Estimated parameters:") | ||
| print(f" Conversion gain: {params['sensitivity']:.3f} ADU/photon") | ||
| print(f" Zero level: {params['zero_level']:.1f} ADU") |
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.
units
|
|
||
| ```python | ||
| # If you know electrons per ADU: | ||
| electrons_per_adu = 2.5 # From camera spec sheet |
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.
| electrons_per_adu = 2.5 # From camera spec sheet | |
| photons_per_unit = 2.5 # From camera spec sheet |
| ```python | ||
| # If you know electrons per ADU: | ||
| electrons_per_adu = 2.5 # From camera spec sheet | ||
| quantum_efficiency = 0.9 # Photons to electrons conversion |
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.
quantum efficiency is not photons to electron conversion. This is a highly technical issue and we should just refer to the appropriate literature, like our Nature Protocols paper for example.
| electrons_per_adu = 2.5 # From camera spec sheet | ||
| quantum_efficiency = 0.9 # Photons to electrons conversion | ||
|
|
||
| conversion_gain = electrons_per_adu / quantum_efficiency |
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.
conversion_gain does not relate to electrons. It describes the increase in the measured signal (in digital units) per detected photon. This does not depend on quantum efficiency.
Continues #22 by adding docs using mkdocs-material
Also updates docstrings to numpy style.
Adds a github action to deploy the docs to github pages.