-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lite-Functions Ep. 1 | Jump to Hyperspace #1145
Merged
Merged
Changes from 1 commit
Commits
Show all changes
122 commits
Select commit
Hold shift + click to select a range
81404df
create autodoc directory and move automodapi in
rocco8773 8fc110d
rename automodsumm.py -> core.py
rocco8773 685273d
create directory automodsumm and move core.py into it
rocco8773 cac62a9
move generate.py into plasmapy_sphinx.automodsumm
rocco8773 84d2f03
remove accidental refactoring that placed 'docs.plasmapy_sphinx'
rocco8773 50b34f7
rename template directory templates/automodapi/ -> templates/automods…
rocco8773 a29efc3
follow-up corrections from the major pkg refactoring thus far
rocco8773 c0671a5
rewrite plasmapy_sphinx module level docstring
rocco8773 333601d
add plasmapy_sphinx to extensions confval instead of the setup() func
rocco8773 b6210b8
create directives sub-pkg
rocco8773 767881b
CSS zero out bottom margin for paragraphs in table headings
rocco8773 4a74376
move the confval functionality extras -> directives.confval
rocco8773 26894e3
create stub files for plasmapy_sphinx.directives and plasmapy_sphinx.…
rocco8773 b3c3f3e
update module.rst template file with an API section to simulate the P…
rocco8773 a1a6261
CSS allow text wrapping for last column of a table
rocco8773 7f241f7
clean up docstring and expand table
rocco8773 e4556ed
minor cleanup/fixes to confval docstring
rocco8773 feec550
move the event directive code from plasmapy_sphinx.extras to plasmapy…
rocco8773 011684a
add clarifying note
rocco8773 3b9a8b8
fix typo
rocco8773 f041f4e
fix wording
rocco8773 64690d2
make note about linking with sphinx.ext.intersphinx
rocco8773 18cb076
add docstring for event.py
rocco8773 5e9e666
allow event names to use underscores
rocco8773 14f5dbd
docstring wording fixes
rocco8773 8435067
add docstring to setup()
rocco8773 a12bbdf
add module level docstring for plasmapy_sphinx.automodsumm
rocco8773 208e228
repair a few links from the automodsumm refactor/move
rocco8773 bda8d54
add link to sphinx-autogen
rocco8773 42a44d8
consistent styling
rocco8773 906e17d
add brief descriptions for the sections
rocco8773 ae3d7c0
undo accidental notebook commit
rocco8773 dac26fb
add docstrings to plasmapy_sphinx.autodoc
rocco8773 ed02fda
delete __init__ file in docs/
rocco8773 b496f72
Merge branch 'master_from_plasmapy' into refactor_plasmapy_sphinx
rocco8773 fd6d9cc
initial commit for the mark_has_lite_func decorator
rocco8773 47902bd
add lite-function group for automodapi
rocco8773 15f12ae
add numba to intersphinx_mappings
rocco8773 e30a035
setup auto population of __lite_funcs__
rocco8773 e6bf576
initial commit for thermal_speed_lite and supporting functionality
rocco8773 be2739a
add html-nitpicky command
rocco8773 92c2017
Revert "add html-nitpicky command"
rocco8773 58683aa
reduce MathJax margin when in tables
rocco8773 2341c6f
update thermal_speed docstring to better explain the various methods …
rocco8773 cb3e074
fully define thermal_speed_coefficients()
rocco8773 eb54dd8
fully define thermal_speed_coefficients()
rocco8773 6e69676
add example for thermal_speed.lite
rocco8773 7c45387
docstring spelling/phrasing fixes for thermal_speed_coefficients
rocco8773 0a34a98
add docstring for thermal_speed_lite
rocco8773 32c0c68
add a returns field for thermal_speed_lite
rocco8773 33d872f
a few spelling/phrasing docstring fixes
rocco8773 69f40d9
initial commit for TestThermalSpeed
rocco8773 c76cd3a
test raises cases for thermal_speed_coefficients
rocco8773 60969e0
move decorator to handling marking and creation of lite-functionality…
rocco8773 54dfd9c
mark_has_lite_func(): drop scope argument, remove use of named tuple,…
rocco8773 32ed7ed
add docstring to test_thermal_speed_coefficients_raises
rocco8773 523cd60
add test for proper binding of lite functionality to thermal_speed
rocco8773 54c4b1a
reorganize test methods
rocco8773 0ccc0b3
Merge branch 'master_from_plasmapy' into lite_func_part1
rocco8773 5974b65
rename decorator mark_has_lite_func -> bind_lite_func
rocco8773 10341b2
rename arg flite - lite_func
rocco8773 bf444f8
fill out docstring
rocco8773 38adced
clean up module docstrings
rocco8773 1a2db15
clean up code
rocco8773 6a2f132
initial commit for lite function decorator tests
rocco8773 1dd8f05
rename dunder __has_lite_func__ -> __bound_lite_func__
rocco8773 42db94a
remove if statement that is never True
rocco8773 606caf5
drop LiteFuncList; make __bound_lite_func__ a dict
rocco8773 114d753
expand bind_lite_func examples in docstring
rocco8773 91a7ed5
introduce _LiteFuncDict only so __bind_lite_func__ can have a PlasmaP…
rocco8773 5a11eaf
add a notes section to bind_lite_func docstring
rocco8773 aab251b
remove the lite function registry (_litefunc_registry)
rocco8773 c25d3e7
migrate argument attrs from a list of tuples to a dictionary
rocco8773 777936d
remove unused imports
rocco8773 e6c4111
whoops, use dict instead of list for attrs
rocco8773 2b0e3d7
add tests for raised Exceptions by bind_lite_func
rocco8773 95f4984
PEP8 fix
rocco8773 fd86299
write test function for issued warnings; decompose the Test function …
rocco8773 dbf78a1
update warning test to ensure member was not bound
rocco8773 78bf035
wrote tests for proper binding and definition of the __bound_lite_fun…
rocco8773 e1abbe9
add a coverage ignore
rocco8773 5e60d07
add assertion to ensure the decorated function and lite function are …
rocco8773 8893cc4
parametrize alias tests
rocco8773 19a7fe7
move thermal tests into their own test file test_thermal_speed.py
rocco8773 91e62d2
streamline preserve_signature so it does manipulation to the wrapped …
rocco8773 9e91a2e
update bind_lite_func to allow numba jitted functions
rocco8773 2882998
add test cases of binding numba jitted (jit and njit) functions
rocco8773 a852895
write tests for thermal_speed_coefficients
rocco8773 c59122c
split thermal_speed_lite tests into a separate test class; update tes…
rocco8773 f88fa6d
move thermal_speed valid value tests into test method test_values
rocco8773 6ca1451
move thermal_speed raises tests into test method test_raises
rocco8773 0847791
create test test_can_handle_numpy_arrays
rocco8773 4ce934c
add skipping of doctests
rocco8773 936b098
appease angry linters
rocco8773 e1e53dd
remove trailing whitespace
rocco8773 bd1e010
remove f-string
rocco8773 3912f21
remove white space
rocco8773 d20088c
add test case for warnings by thermal_speed
rocco8773 912e2c7
add a test that compares electron vs proton thermal speeds
rocco8773 22f7db5
finish thermal speed test...adding test for assuming Z=1
rocco8773 6efa364
remove unused imports
rocco8773 d8fe850
clean up tests
rocco8773 c2e8f08
appease grumpy black
rocco8773 8d71e1b
add a coverage ignore
rocco8773 535b01b
remove unused variables
rocco8773 8257c43
add change logs
rocco8773 d6473db
remove redundant comments
rocco8773 2a23c5f
Apply suggestions from code review
rocco8773 49f1e81
clean up thermal_speed_coefficients docstring, line length and wording
rocco8773 76ab31f
Merge branch 'main_from_pp' into lite_func_part1
rocco8773 52211f6
specify lite functions are jitted when possible
rocco8773 897e9d6
expand on the NRL method and what the variance is
rocco8773 365f9ed
remove the variance symbol
rocco8773 46eef57
rename errStr -> errstr
rocco8773 da6bf9e
make comment more readable
rocco8773 93f6c9a
replace PlasmaPyWarning with ValueError
rocco8773 d7b85a4
add an is jitted test
rocco8773 050577f
update thermal_speed_lite test such that the python func and c-compil…
rocco8773 37c410d
add lite-function to the glossary and update the "Lite-Functions" aut…
rocco8773 35f6160
add plural lite-functions to glossary
rocco8773 083f48e
add custom CSS styling for Glossary definition list (dl)
rocco8773 d8f8326
Update docs/glossary.rst
rocco8773 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
rename decorator mark_has_lite_func -> bind_lite_func
- Loading branch information
commit 5974b65190a3b0b83c0a9c02b2d0c8e8cb99416d
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
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 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Since
thermal_speed_lite
is decorated bynumba.njit
, the code that is actually covered by tests is the c-compiled version and thuscoverage
does not recognize if the python code gets hit.For now I'm updating the tests such that the following is essentially done...
The call to
thermal_speed_lite.py_func
calls the original python function and, thus, is calculated in the coverage report. An alternative to this is to add a scheme to theexcluded_lines
in the[coverage:report]
settings ofsetup.cfg
such that anything decorated withjit
ornjit
is ignored.