-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python 3.11 compatible versions of numba JIT-compiled functions (#20)
* update mean_angle for jit-compilation in 3.11 * add haversine dist test * haversine dist is weird * update test class names * update changelog for 0.2.15 * update pyproject file * add 3.11 to CI workflow * use 3.8.1 as minimal Py version in CI * drop 3.8 support ! * bump to 0.3.0 since dropped Python 3.8 * update lock
- Loading branch information
1 parent
adcd2fa
commit 5fd98c2
Showing
12 changed files
with
468 additions
and
441 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import unittest | ||
|
||
import numpy as np | ||
|
||
from pyfuppes import geo | ||
|
||
|
||
class TestGeo(unittest.TestCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
# to run before all tests | ||
print("\ntesting pyfuppes.avgbin...") | ||
|
||
@classmethod | ||
def tearDownClass(cls): | ||
# to run after all tests | ||
pass | ||
|
||
def setUp(self): | ||
# to run before each test | ||
pass | ||
|
||
def tearDown(self): | ||
# to run after each test | ||
pass | ||
|
||
def test_haversine_dist(self): | ||
dist = 2887 | ||
tol_decimalplaces = 0 | ||
self.assertAlmostEqual( | ||
geo.haversine_dist(np.array((36.12, 33.94)), np.array((-86.67, -118.40))), | ||
dist, | ||
tol_decimalplaces, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
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