PlasmaPy v2023.1.0 (2023-01-13)ο
Backwards Incompatible Changesο
Moved the charged particle radiography analysis codes into a new module
charged_particle_radiographycontaining synthetic radiography tools insynthetic_radiographyand detector stack calculation tools indetector_stacks. (#1274)Changed the
gyroradiusfunction so that it takes relativistic effects into account by default. (#1813)
Deprecations and Removalsο
Changed the
gyroradiusfunction so it no longer accepts deprecatedT_i. (#1824)Removed
plasmapy.formulary.parameters, which was deprecated in the0.7.0release. The functionality in that module had previously been migrated to modules that are broken down by physical type, such as:plasmapy.formulary.densities,plasmapy.formulary.dimensionless,plasmapy.formulary.frequencies,plasmapy.formulary.lengths,plasmapy.formulary.misc, andplasmapy.formulary.speeds. (#1833)Deprecated providing a real number to the
chargeparameter ofCustomParticleto represent the charge number. UseZinstead. (#1866)
Featuresο
Added the
StackandLayerobjects to thecharged_particle_radiographymodule, which represent a stack of detector media layers. Thedeposition_curvesandenergy_bandsmethods ofStackcalculate the particle energies deposited in each detector layer. (#1274)Trackernow supports multiple field grids, provided as an iterable. (#1799)Added the
plasmapy.analysis.time_series.running_momentsmodule including two functions for calculating running moments of time series. (#1803)Added
lorentzfactoras an optional keyword-only argument togyroradius. Also addedrelativisticas an optional keyword-only argument which can be set toFalsefor the non-relativistic approximation. (#1813)Modified
Particleattributes to returnnanin the appropriate units when undefined rather than raising exceptions. (#1825)Added the
charge_numberattribute toCustomParticle. (#1866)Added
Zas a keyword-only parameter representing the charge number toCustomParticle. (#1866)
Improved Documentationο
Updated docstrings and annotations in
plasmapy.diagnostics.thomson. (#1756)Updated the discussion on type descriptions and parameter descriptions for docstrings in the Documentation Guide. (#1757)
Updated troubleshooting sections of the Documentation Guide. (#1817)
Added a summary section to the Testing Guide. (#1823)
Updated the Changelog Guide. (#1826)
Reorganized the Coding Guide πΎ. (#1856)
Added a documentation page on performance tips. (#1887)
Trivial/Internal Changesο
Updated warning messages in
Coulomb_logarithm. (#1586)Transferred most of the contents of
setup.pyandsetup.cfgtopyproject.toml(see PEP 518 and PEP 621). Simplifiedextrasrequirements (pip install plasmapy[all]and[extras]are gone). (#1758)Added blacken-docs to the pre-commit configuration. (#1807)
Removed
pytest-xdistfrom the testing requirements. (#1822; see also #750)Refactored tests of
Lorentz_factorandrelativistic_energy. (#1844)Applied refactorings from ruff and
refurbtoplasmapy.utils. (#1845)Applied changes from
refurbtoplasmapy.particles. (#1846)Applied changes from
refurbtoplasmapy.formulary. (#1847)Apply changes from ruff and
refurbtoplasmapy.analysis,plasmapy.diagnostics,plasmapy.dispersion, andplasmapy.plasma. (#1853)Added the
strictandallowed_physical_typesparameters toplasmapy.utils._units_helpers._get_physical_type_dict. (#1880)Added a private constructor method to
CustomParticlewith an API that is better suited for use inParticleListand the particle factory function used byparticle_input(). (#1881)Dropped the dependency on
cached-propertyin favor offunctools.cached_property. (#1886)