pfc-geometry 0.2.15__tar.gz → 0.2.17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/PKG-INFO +1 -1
  2. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/pyproject.toml +1 -1
  3. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/base.py +0 -1
  4. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/utils.py +5 -2
  5. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/.dockerignore +0 -0
  6. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/.github/workflows/publish_pypi.yml +0 -0
  7. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/.gitignore +0 -0
  8. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/LICENSE +0 -0
  9. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/README.md +0 -0
  10. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/__init__.py +0 -0
  11. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/checks.py +0 -0
  12. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/coordinate_frame.py +0 -0
  13. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/gps.py +0 -0
  14. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/mass.py +0 -0
  15. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/point.py +0 -0
  16. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/py.typed +0 -0
  17. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/quaternion.py +0 -0
  18. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/time.py +0 -0
  19. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/src/geometry/transformation.py +0 -0
  20. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/__init__.py +0 -0
  21. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_base.py +0 -0
  22. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_coord.py +0 -0
  23. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_gps.py +0 -0
  24. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_mass.py +0 -0
  25. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_point.py +0 -0
  26. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_quaternion.py +0 -0
  27. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_remove_outliers.csv +0 -0
  28. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_time.py +0 -0
  29. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_transform.py +0 -0
  30. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/tests/test_utils.py +0 -0
  31. {pfc_geometry-0.2.15 → pfc_geometry-0.2.17}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pfc-geometry
3
- Version: 0.2.15
3
+ Version: 0.2.17
4
4
  Summary: A library for working with 3D geometry.
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pfc-geometry"
3
- version="0.2.15"
3
+ version="0.2.17"
4
4
  description = "A library for working with 3D geometry."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -12,7 +12,6 @@ this program. If not, see <http://www.gnu.org/licenses/>.
12
12
 
13
13
  from __future__ import annotations
14
14
  from typing import Self, Literal
15
- from httpx import get
16
15
  import numpy as np
17
16
  import numpy.typing as npt
18
17
  import pandas as pd
@@ -36,12 +36,15 @@ def get_index(
36
36
  value: Number,
37
37
  missing: float | Literal["throw"] = "throw",
38
38
  direction: Literal["forward", "backward"] = "forward",
39
+ increasing: bool = None
39
40
  ):
40
41
  """given a value, find the index of the first location in the aray,
41
42
  if no exact match, linearly interpolate in the index
42
43
  assumes arr is monotonic increasing
43
- raise value error outside of bounds and missing == "throw", else return missing"""
44
- increasing = np.sign(np.diff(arr).mean())
44
+ raise value error outside of bounds and missing == "throw", else return missing
45
+ increasing, is the array going up or down, if not given it will be inferred from the data
46
+ """
47
+ increasing = np.sign(np.diff(arr).mean()) if increasing is None else increasing
45
48
  res = np.argwhere(arr == value)
46
49
  if len(res):
47
50
  return res[0 if direction == "forward" else -1, 0]
File without changes
File without changes
File without changes
File without changes