forked from PlasmaPy/PlasmaPy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Easier Output Saving for Proton Radiography (PlasmaPy#1134)
- Loading branch information
1 parent
d3438b8
commit 20741c5
Showing
19 changed files
with
2,324 additions
and
1,580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Renamed subpacakge ``plasmapy.diagnostics.proton_radiography`` to | ||
`plasmapy.diagnostics.charged_particle_radiography`, and renamed the | ||
``SyntheticProtonRadiograph`` class within that module to | ||
`~plasmapy.diagnostics.charged_particle_radiography.Tracker`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
`~plasmapy.diagnostics.charged_particle_radiography.Tracker` no longer | ||
supports making changes to an instantiated object and | ||
re-running the simulation. Subsequent simulations should be performed | ||
by instantiating a new | ||
`~plasmapy.diagnostics.charged_particle_radiography.Tracker` object and | ||
running. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Removed the ``Tracker.synthetic_radiograph()`` method and created the | ||
standalone function | ||
:func:`~plasmapy.diagnostics.charged_particle_radiography.synthetic_radiograph` | ||
in its place. This new function takes either a | ||
`~plasmapy.diagnostics.charged_particle_radiography.Tracker` object or | ||
a dictionary equivalent to | ||
`~plasmapy.diagnostics.charged_particle_radiography.Tracker.results_dict`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Running `~plasmapy.diagnostics.charged_particle_radiography.synthetic_radiograph` | ||
with the ``optical_density=True`` keyword will now return `numpy.inf` | ||
where the source profile intensity is zero. Previously, an incorrect value | ||
was returned since zero entries were replaced with values of ``1`` before | ||
taking the logarithm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Added the | ||
:meth:`~plasmapy.diagnostics.charged_particle_radiography.Tracker.save_results` | ||
method to `~plasmapy.diagnostics.charged_particle_radiography.Tracker` | ||
for saving results to a ``.npz`` file format (see `numpy.lib.format` for | ||
details on the file format). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
`~plasmapy.diagnostics.charged_particle_radiography.synthetic_radiograph` | ||
now determines the default detector size to be the smallest detector | ||
plane centered on the origin that includes all particles. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. _charged_particle_radiography: | ||
|
||
************************************* | ||
Charged particle radiography analysis | ||
************************************* | ||
|
||
.. currentmodule:: plasmapy.diagnostics.charged_particle_radiography | ||
|
||
.. automodapi:: plasmapy.diagnostics.charged_particle_radiography | ||
|
||
.. nbgallery:: | ||
:caption: Examples | ||
|
||
/notebooks/diagnostics/charged_particle_radiography_particle_tracing | ||
/notebooks/diagnostics/charged_particle_radiography_particle_tracing_custom_source | ||
/notebooks/diagnostics/charged_particle_radiography_particle_tracing_wire_mesh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
544 changes: 544 additions & 0 deletions
544
docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
740 changes: 740 additions & 0 deletions
740
docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_custom_source.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
483 changes: 483 additions & 0 deletions
483
docs/notebooks/diagnostics/charged_particle_radiography_particle_tracing_wire_mesh.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.