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
Charged Particle Radiography: Detector Stacks #1274
Conversation
This reverts commit 335305c.
for more information, see https://pre-commit.ci
proton_radiography -> charged_particle_radiography SyntheticProtonRadiograph -> Tracker
This information will be used later in more sophisticated synthetic radiograph functions that calculate deposition of particles in various layers of film.
Co-authored-by: Erik Everson <eteverson@gmail.com>
plasmapy/diagnostics/charged_particle_radiography/synthetic_radiography.py
Outdated
Show resolved
Hide resolved
…diography.py Co-authored-by: Nick Murphy <namurphy@cfa.harvard.edu>
@namurphy Something appears to not quite be working with the substitution for Layer? Maybe it can't go in that parameters section? |
I think I fixed the issue with the substitution by moving it earlier before the parameters block. Here are the remaining doc errors, broadly in two categories A number of this first set relate to things like
The rest are related to broken links in the What's New sections. I would suggest just removing this folder from the space that CI checks? Otherwise links will of course break every time we refactor anything.
|
Wow, pretty obvious in retrospect! The thing is, this is the actual sphinx build we're checking for the warnings. Obviously it's not enough anymore. I guess instead of running On the |
These lines look like this:
There is no variable nenergies. I could just remove the `` which would be the easiest solution? |
Let's try it! |
Actually, wisdom by @namurphy: do |
plasmapy/diagnostics/charged_particle_radiography/detector_stacks.py
Outdated
Show resolved
Hide resolved
- Moved Layer link to common links
plasmapy/diagnostics/charged_particle_radiography/synthetic_radiography.py
Outdated
Show resolved
Hide resolved
Still getting a doc build error, seemingly due to a reST formatting problem.
It would have been helpful if it had said the file that the issue is occurring in...sigh! |
Co-authored-by: Nick Murphy <namurphy@cfa.harvard.edu>
…diography.py Co-authored-by: Nick Murphy <namurphy@cfa.harvard.edu>
Co-authored-by: Nick Murphy <namurphy@cfa.harvard.edu>
Indeed...let's see if this works! |
@namurphy that worked! Merging before the linters change their mind :) |
Congratulations on getting it merged! 🎈🎂🎆 It's strange that my suggestion actually worked. 👀🤔 |
Charged particle radiography detectors are usually comprised of multiple layers of active medium, each of which detects different energies of particles based on their Bragg peak. This PR adds a couple objects that represent these detector stacks and calculates the energies deposited in each layer using stopping power data from NIST.
This is Step 1 of adding support for detector stacks. Step 2, in a future PR, will create a new
synthetic_radiograph
function that takes a film stack object and produces a synthetic radiograph in each layer.This PR depends on #1486 and should be merged after that PRDone