PlasmaPy v0.4.0 (2020-07-20)
This release of PlasmaPy contains 50 commits in 46 merged pull requests closing 25 issues from 9 people, 5 of which are first-time contributors to PlasmaPy.
The people who have contributed to the code for this release are:
Ankur Chattopadhyay *
Anthony Vo *
Diego Diaz
Dominik Stańczak
Jakub Polak *
KhalilBryant *
Nick Murphy
Peter Heuer *
rocco8773
An asterisk indicates that this release contains their first contribution to PlasmaPy.
Backwards Incompatible Changes
Renamed
plasmapy.atomic
toparticles
. Incollisions
andbraginskii
, change arguments named particles tospecies
and arguments namedion_particle
toion
for multiple functions. (#742)Officially deleted
plasmapy.examples
. (#822)Moved
plasmapy.data
toplasmapy.particle.data
. (#823)Renamed the
plasmapy.classes
subpackage toplasmapy.plasma
. (#842)
Features
Added units to reprs of
formulary.magnetostatics
classes. (#743)Created prototype abstract interfaces for plasma simulations (#753)
Created classes to represent custom and dimensionless particles in
plasmapy.particles
. (#755)Created
relativistic_energy()
function, which uses the establishedLorentz_factor()
function to aid in the calculation of the relativistic energy of an object. (#805)Created
Reynolds_number()
function. (#815)Created
Mag_Reynolds()
function. (#820)Created
plasmapy.formulary.parameters.Bohm_diffusion
function. (#830)Added a new diagnostics module
thomson
containing a functionspectral_density
that calculates Thomson scattering spectra for Maxwellian plasmas in both the collective and non-collective regimes. As a followup to PR #835, set the minimal required Numpy version to 1.18.1 to finally fix unit dropping bugs. (#831)Revised
plasmapy.formulary.parameters.thermal_speed
to support 1D and 2D distributions as well as 3D, and added an example notebook for this function. (#850)Created
plasmapy/formulary/ionization.py
with theplasmapy.formulary.ionization.Z_bal
function. (#851)Added aliases (with trailing underscores) for parameters in the formulary:
plasmapy.formulary.parameters.mass_density
→plasmapy.formulary.parameters.rho_
plasmapy.formulary.parameters.Alfven_speed
→plasmapy.formulary.parameters.va_
plasmapy.formulary.parameters.ion_sound_speed
→plasmapy.formulary.parameters.cs_
plasmapy.formulary.parameters.thermal_speed
→plasmapy.formulary.parameters.vth_
plasmapy.formulary.parameters.thermal_pressure
→plasmapy.formulary.parameters.pth_
plasmapy.formulary.parameters.kappa_thermal_speed
→plasmapy.formulary.parameters.vth_kappa_
plasmapy.formulary.parameters.inertial_length
→plasmapy.formulary.parameters.cwp_
plasmapy.formulary.parameters.Hall_parameter
→plasmapy.formulary.parameters.betaH_
plasmapy.formulary.parameters.gyrofrequency
→plasmapy.formulary.parameters.oc_
,plasmapy.formulary.parameters.wc_
plasmapy.formulary.parameters.gyroradius
→plasmapy.formulary.parameters.rc_
,plasmapy.formulary.parameters.rhoc_
plasmapy.formulary.parameters.plasma_frequency
→plasmapy.formulary.parameters.wp_
plasmapy.formulary.parameters.Debye_length
→plasmapy.formulary.parameters.lambdaD_
plasmapy.formulary.parameters.Debye_number
→plasmapy.formulary.parameters.nD_
plasmapy.formulary.parameters.magnetic_pressure
→plasmapy.formulary.parameters.pmag_
plasmapy.formulary.parameters.magnetic_energy_density
→plasmapy.formulary.parameters.ub_
plasmapy.formulary.parameters.upper_hybrid_frequency
→plasmapy.formulary.parameters.wuh_
plasmapy.formulary.parameters.lower_hybrid_frequency
→plasmapy.formulary.parameters.wlh_
plasmapy.formulary.parameters.Bohm_diffusion
→plasmapy.formulary.parameters.DB_
plasmapy.formulary.quantum.thermal_deBroglie_wavelength
→lambdaDB_th_
Added
json_dumps
method toAbstractParticle
to convert a particle object into a JSON string. Addedjson_dump
method toAbstractParticle
to serialize a particle object and writes it to a file. Added JSON decoderParticleJSONDecoder
to deserialize JSON objects into particle objects. Addedplasmapy.particles.serialization.json_loads_particle
function to convert JSON strings to particle objects (usingParticleJSONDecoder
). Addedplasmapy.particles.json_load_particle
function to deserialize a JSON file into a particle object (usingParticleJSONDecoder
). (#836)
Bug Fixes
Fixed incorrect use of
pkg.resources
when definingplasmapy.__version__
. Addsetuptools
to package dependencies. Added a definition of__version__
for developers using source files. (#774)Repaired notebook links that are defined in the
nbsphinx_prolog
sphinx configuration variable. (#828)Increased the required Astropy version from 3.1 to 4.0, Numpy from 1.14 to 1.16.6, Scipy from 0.19 to 1.2 and lmfit from 0.9.7 to 1.0.1. This fixes long-standing issues with Numpy operations dropping units from Astropy quantities. (#835)
Improved Documentation
Added documentation to file test_converters (#756)
Updated installation instructions. (#772)
Reordered documentation page (#777)
Fixed failing documentation build due to duplicate docstrings for
ParticleTracker.kinetic_energy_history
and incompatibility ofsphinx-automodapi
withsphinx
v3.0.0
. (#780)Automated definition of documentation
release
andversion
indocs/conf.py
withplasmapy.__version__
. (#781)Added a docstring to
__init__.py
inplasmapy.formulary
. (#788)Replaced sphinx-gallery with nbsphinx, turning
.py
example files into.ipynb
files and allowing for easier example submission. (#792)Linked various instances of classes and functions in the
.ipynb
examples indocs/notebooks/
to the respective API docs. (#825)Fixed a few documentation formatting errors. (#827)
Added notes on the PlasmaPy benchmarks repository to documentation. (#841)
Improved readability of the
plasmapy.formulary
page by replacing thetoctree
list with a cleaner reStructuredText table. (#867)
Trivial/Internal Changes
Removed mutable arguments from
Particle.is_category
method. (#751)Removed all occurrences of default mutable arguments (#754)
Handled
ModuleNotFoundError
when trying to import__version__
butsetuptools_scm
has not generated theversion.py
file. This commonly happens during development whenplasmapy
is not installed in the python environment. (#763)Updated pep8speaks/flake8 configuration and added
.pre-commit-config.yaml
to simplify automated style checks during development. (#770)Removed some lint from
setup.py
andsetup.cfg
. Usedpkg_resources
for version checking in code. Removedversion.py
file in favor ofpkg_resources
. (#771)Default settings for isort were set to be consistent with default settings for black. (#773)
Updated community meeting and funding information in docs. (#784)
Improved pull request template to include more information about changelog entries. (#843)
Added GitHub actions that apply pre-commit and flake8 (separately) to incoming pull requests. (#845)
Applied pre-commit hooks to entire repository. (#846)
Updated
CustomParticle
so input parametersmass
andcharge
can accept string representations of astropyQuantities
. (#862)