Skip to content

Conversation

@rocco8773
Copy link
Member

@rocco8773 rocco8773 commented May 7, 2019

Creating two new sub-modules:

  1. bapsflib.plasma.constants

    • module focuses on providing a number of physical constants
    • all constants are provided as an astropy.constants.Constant
    • current constants documentation
  2. bapsflib.plasma.parameters

    • module focuses on providing a number of plasma parameters
    • functionality of parameters is designed to be useful with values and units typically acquired during experiments
    • Units follow the NRL Plasma Formulary. All units are in Gaussian cgs except for temperature, which is expressed in eV.
    • all parameters are returned as astropy.units.Quantity
    • current parameters documentation

Tasks before merge:

  • bapsflib.plasma.constants
    • Review and add all desired physical constants
    • Agree on naming for all constants
    • All constants must be astropy.constants.Constant
    • Cover with tests
  • bapsflib.plasma.constants
    • Review and add all desired plasma paramters
    • Agree on naming for all parameters
    • Parameter functionality is consistent and suit to how plasma values are measured/calculated in the lab environment
    • All constants must be astropy.units.Quantity
    • Units follow the NRL Plasma Formulary scheme
    • Cover with tests

…nstants `e`, `e_gauss`, and `u` to BaPSFConstant to provided clearer metadata; update docstring constant table with a 'system' units column
…clotron frequency, electron-cyclotron frequency, ion-cyclotron frequency, and a generic plasma frequency
…'parameters' modules (also added to __all__)
…lectron-plasma frequency (`ope`) and the ion-plasma frequency (`opi`)
@codecov
Copy link

codecov bot commented May 9, 2019

Codecov Report

Merging #38 into master will decrease coverage by 2.34%.
The diff coverage is 60.5%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #38      +/-   ##
=========================================
- Coverage   96.85%   94.5%   -2.35%     
=========================================
  Files          49      52       +3     
  Lines        3113    3202      +89     
  Branches      566     595      +29     
=========================================
+ Hits         3015    3026      +11     
- Misses         97     175      +78     
  Partials        1       1
Impacted Files Coverage Δ
bapsflib/_hdf/utils/hdfreaddata.py 100% <ø> (ø) ⬆️
bapsflib/utils/units/decorators.py 100% <100%> (ø)
bapsflib/__init__.py 100% <100%> (ø) ⬆️
bapsflib/plasma/constants.py 100% <100%> (ø)
bapsflib/utils/errors.py 100% <100%> (ø) ⬆️
bapsflib/plasma/__init__.py 100% <100%> (ø) ⬆️
bapsflib/utils/units/__init__.py 100% <100%> (ø)
bapsflib/utils/__init__.py 100% <100%> (ø) ⬆️
bapsflib/utils/decorators.py 100% <100%> (ø) ⬆️
bapsflib/utils/units/equivalencies.py 22.72% <22.72%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a20a78c...68e30f7. Read the comment docs.

rocco8773 added 24 commits May 8, 2019 19:06
…s; make `check_quantity` and `_check_quantity` enforce specified unit
…s package; move func temperature_and_energy to new equivalencies module; add equivalencies to bapsflib.utils imports
…y` and `check_relativistic` to new module; include in imports and __all__ for bapsflib.utils.units.__init__ and bapsflib.utils.__init__
…e an enfoce kwarg to foce unit conversion or just check equivalency
…gname` -> `val_name`; improve descriptive comments; improve conditioning for `equivalencies` kwarg; streamline process of function and increase readability of function
@rocco8773 rocco8773 modified the milestones: v1.0.1, v1.1.0 May 24, 2019
rocco8773 added 2 commits June 6, 2019 15:39
# Conflicts:
#	bapsflib/__init__.py
#	bapsflib/plasma/__init__.py
#	bapsflib/plasma/core.py
#	bapsflib/utils/__init__.py
#	bapsflib/utils/decorators.py
#	docs/src/bapsflib.rst
@pep8speaks
Copy link

Hello @rocco8773! Thanks for updating your pull request.

Line 18:1: E402 module level import not at top of file
Line 21:1: E402 module level import not at top of file
Line 22:1: E402 module level import not at top of file

Line 35:62: W291 trailing whitespace
Line 36:63: W291 trailing whitespace
Line 37:58: W291 trailing whitespace
Line 62:80: E501 line too long (115 > 79 characters)
Line 72:80: E501 line too long (80 > 79 characters)
Line 100:67: W291 trailing whitespace
Line 112:69: W291 trailing whitespace
Line 118:66: W291 trailing whitespace
Line 119:67: W291 trailing whitespace

Line 366:1: E303 too many blank lines (5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants