-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba7e6fc
commit 6c7b711
Showing
2 changed files
with
31 additions
and
24 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
"""Functions from mathematics to benchmark with aerospeed velocity """ | ||
|
||
import astropy.units as u | ||
from plasmapy.formulary import ( | ||
plasma_dispersion_func, | ||
plasma_dispersion_func_deriv, | ||
Fermi_integral | ||
) | ||
|
||
|
||
class mathematics: | ||
""" | ||
Benchmark that times the performance of funcions from | ||
mathematics/mathematics.py file | ||
""" | ||
|
||
def setup(self): | ||
pass | ||
|
||
def time_plasma_dispersion_func(self): | ||
plasma_dispersion_func(-1.52+0.47j) | ||
|
||
def time_plasma_dispersion_func_deriv(self): | ||
plasma_dispersion_func_deriv(-1.52+0.47j) | ||
|
||
def time_Fermi_integral(self): | ||
Fermi_integral(1, 0) |
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