Skip to content

Commit

Permalink
Easier Output Saving for Proton Radiography (PlasmaPy#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
pheuer authored and Timelord18 committed Oct 6, 2021
1 parent d3438b8 commit 20741c5
Show file tree
Hide file tree
Showing 19 changed files with 2,324 additions and 1,580 deletions.
4 changes: 4 additions & 0 deletions changelog/1134.breaking.1.rst
@@ -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`.
6 changes: 6 additions & 0 deletions changelog/1134.breaking.2.rst
@@ -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.
7 changes: 7 additions & 0 deletions changelog/1134.breaking.3.rst
@@ -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`.
5 changes: 5 additions & 0 deletions changelog/1134.bugfix.rst
@@ -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.
5 changes: 5 additions & 0 deletions changelog/1134.feature.rst
@@ -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).
3 changes: 3 additions & 0 deletions changelog/1134.trivial.rst
@@ -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.
16 changes: 16 additions & 0 deletions docs/ad/diagnostics/charged_particle_radiography.rst
@@ -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
2 changes: 1 addition & 1 deletion docs/ad/diagnostics/index.rst
Expand Up @@ -10,7 +10,7 @@
:maxdepth: 1
:caption: Sub-Packages & Modules

proton_radiography
charged_particle_radiography
Swept Langmuir (will be deprecated) <langmuir>
thomson

Expand Down
16 changes: 0 additions & 16 deletions docs/ad/diagnostics/proton_radiography.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.rst
Expand Up @@ -20,7 +20,7 @@ Example highlights
.. nbgallery::
:hidden:

notebooks/diagnostics/proton_radiography_particle_tracing
notebooks/diagnostics/charged_particle_radiography_particle_tracing
notebooks/dispersion/two_fluid_dispersion
notebooks/diagnostics/thomson
notebooks/analysis/swept_langmuir/find_floating_potential
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 20741c5

Please sign in to comment.