differt-core 0.7.0__tar.gz → 0.8.1__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 (62) hide show
  1. {differt_core-0.7.0 → differt_core-0.8.1}/Cargo.lock +1 -1
  2. {differt_core-0.7.0 → differt_core-0.8.1}/PKG-INFO +1 -1
  3. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/Cargo.toml +1 -1
  4. {differt_core-0.7.0 → differt_core-0.8.1}/python/differt_core/__init__.py +0 -1
  5. differt_core-0.7.0/differt-core/python/differt_core/__init__.py +0 -25
  6. differt_core-0.7.0/python/differt_core/_differt_core/__init__.pyi +0 -8
  7. differt_core-0.7.0/python/differt_core/_differt_core/geometry/triangle_mesh.pyi +0 -17
  8. differt_core-0.7.0/python/differt_core/_differt_core/rt/__init__.pyi +0 -0
  9. differt_core-0.7.0/python/differt_core/_differt_core/rt/graph.pyi +0 -104
  10. differt_core-0.7.0/python/differt_core/_differt_core/scene/sionna.pyi +0 -18
  11. differt_core-0.7.0/python/differt_core/_differt_core/scene/triangle_scene.pyi +0 -7
  12. differt_core-0.7.0/python/differt_core/geometry/__init__.py +0 -5
  13. differt_core-0.7.0/python/differt_core/geometry/_triangle_mesh.py +0 -5
  14. differt_core-0.7.0/python/differt_core/py.typed +0 -0
  15. differt_core-0.7.0/python/differt_core/rt/__init__.py +0 -19
  16. differt_core-0.7.0/python/differt_core/rt/_graph.py +0 -19
  17. differt_core-0.7.0/python/differt_core/scene/__init__.py +0 -6
  18. differt_core-0.7.0/python/differt_core/scene/_sionna.py +0 -7
  19. differt_core-0.7.0/python/differt_core/scene/_triangle_scene.py +0 -5
  20. {differt_core-0.7.0 → differt_core-0.8.1}/Cargo.toml +0 -0
  21. {differt_core-0.7.0 → differt_core-0.8.1}/LICENSE.md +0 -0
  22. {differt_core-0.7.0 → differt_core-0.8.1}/README.md +0 -0
  23. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/LICENSE.md +0 -0
  24. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/README.md +0 -0
  25. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/bench_main.rs +0 -0
  26. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/benchmarks/graph_iterators.rs +0 -0
  27. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/benchmarks/mod.rs +0 -0
  28. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/geometry/mod.rs +0 -0
  29. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/geometry/triangle_mesh.rs +0 -0
  30. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/lib.rs +0 -0
  31. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/rt/graph.rs +0 -0
  32. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/rt/mod.rs +0 -0
  33. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/scene/mod.rs +0 -0
  34. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/scene/sionna.rs +0 -0
  35. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/scene/triangle_scene.rs +0 -0
  36. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/__init__.py +0 -0
  37. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/rt/__init__.py +0 -0
  38. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/rt/test_graph.py +0 -0
  39. {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/test_version.py +0 -0
  40. {differt_core-0.7.0 → differt_core-0.8.1}/pyproject.toml +1 -1
  41. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/__init__.pyi +0 -0
  42. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/geometry/triangle_mesh.pyi +0 -0
  43. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/rt/__init__.pyi +0 -0
  44. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/rt/graph.pyi +0 -0
  45. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/scene/sionna.pyi +0 -0
  46. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/scene/triangle_scene.pyi +0 -0
  47. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/geometry/__init__.py +0 -0
  48. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/geometry/_triangle_mesh.py +0 -0
  49. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/py.typed +0 -0
  50. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/rt/__init__.py +0 -0
  51. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/rt/_graph.py +0 -0
  52. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/__init__.py +0 -0
  53. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/_sionna.py +0 -0
  54. {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/_triangle_scene.py +0 -0
  55. {differt_core-0.7.0 → differt_core-0.8.1}/src/geometry/mod.rs +0 -0
  56. {differt_core-0.7.0 → differt_core-0.8.1}/src/geometry/triangle_mesh.rs +0 -0
  57. {differt_core-0.7.0 → differt_core-0.8.1}/src/lib.rs +0 -0
  58. {differt_core-0.7.0 → differt_core-0.8.1}/src/rt/graph.rs +0 -0
  59. {differt_core-0.7.0 → differt_core-0.8.1}/src/rt/mod.rs +0 -0
  60. {differt_core-0.7.0 → differt_core-0.8.1}/src/scene/mod.rs +0 -0
  61. {differt_core-0.7.0 → differt_core-0.8.1}/src/scene/sionna.rs +0 -0
  62. {differt_core-0.7.0 → differt_core-0.8.1}/src/scene/triangle_scene.rs +0 -0
@@ -247,7 +247,7 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
247
247
 
248
248
  [[package]]
249
249
  name = "differt-core"
250
- version = "0.7.0"
250
+ version = "0.8.1"
251
251
  dependencies = [
252
252
  "criterion",
253
253
  "indexmap",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: differt-core
3
- Version: 0.7.0
3
+ Version: 0.8.1
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.11
6
6
  Classifier: Programming Language :: Python :: 3.12
@@ -37,5 +37,5 @@ unexpected_cfgs = {level = "warn", check-cfg = ['cfg(tarpaulin_include)']}
37
37
  edition = "2021"
38
38
  name = "differt-core"
39
39
  rust-version = "1.78.0"
40
- version = "0.7.0"
40
+ version = "0.8.1"
41
41
  readme = "README.md"
@@ -1,4 +1,3 @@
1
- # ruff: noqa: RUF067
2
1
  """
3
2
  Core package written in Rust and re-exported here.
4
3
 
@@ -1,25 +0,0 @@
1
- # ruff: noqa: RUF067
2
- """
3
- Core package written in Rust and re-exported here.
4
-
5
- The present package only provides lower-level utilities with
6
- a focus on performances.
7
-
8
- Currently, Rust uses NumPy's C API to communicate between Python
9
- and Rust, hence casting NumPy arrays to JAX arrays in the process,
10
- thus making it impossible to trace variables used in Rust code.
11
-
12
- In the future, we plan on providing XLA-compatible functions,
13
- so that one can use :mod:`differt_core` and still be able to differentiate
14
- its code. We welcome any contribution on that topic!
15
- """
16
-
17
- from differt_core._differt_core import __version__ as _version
18
- from differt_core._differt_core import __version_info__ as _version_info
19
-
20
- __all__ = ("__version__", "__version_info__")
21
-
22
- __version__ = _version
23
- """The current full version of this module."""
24
- __version_info__ = _version_info
25
- """The current short version of this module as a tuple (major, minor, patch)."""
@@ -1,8 +0,0 @@
1
- from types import ModuleType
2
-
3
- __version__: str
4
- __version_info__: tuple[int, int, int]
5
-
6
- geometry: ModuleType
7
- rt: ModuleType
8
- scene: ModuleType
@@ -1,17 +0,0 @@
1
- # pyright: reportMissingTypeArgument=false
2
- import numpy as np
3
- from jaxtyping import Float, Int, UInt
4
-
5
- class TriangleMesh:
6
- vertices: Float[np.ndarray, "num_vertices 3"]
7
- triangles: UInt[np.ndarray, "num_triangles 3"]
8
- face_colors: Float[np.ndarray, "num_triangles 3"] | None
9
- face_materials: Int[np.ndarray, " num_triangles"] | None
10
- material_names: list[str]
11
- object_bounds: UInt[np.ndarray, "num_objects 2"] | None
12
-
13
- def append(self, other: TriangleMesh) -> None: ...
14
- @classmethod
15
- def load_obj(cls, file: str) -> TriangleMesh: ...
16
- @classmethod
17
- def load_ply(cls, file: str) -> TriangleMesh: ...
@@ -1,104 +0,0 @@
1
- # pyright: reportMissingTypeArgument=false
2
- from collections.abc import Iterator, Sized
3
-
4
- import numpy as np
5
- from jaxtyping import Bool, UInt
6
-
7
- class CompleteGraph:
8
- @property
9
- def num_nodes(self) -> int: ...
10
- def __init__(self, num_nodes: int) -> None: ...
11
- def all_paths(
12
- self,
13
- from_: int,
14
- to: int,
15
- depth: int,
16
- *,
17
- include_from_and_to: bool = True,
18
- ) -> AllPathsFromCompleteGraphIter: ...
19
- def all_paths_array(
20
- self,
21
- from_: int,
22
- to: int,
23
- depth: int,
24
- *,
25
- include_from_and_to: bool = True,
26
- ) -> UInt[np.ndarray, "num_paths path_depth"]: ...
27
- def all_paths_array_chunks(
28
- self,
29
- from_: int,
30
- to: int,
31
- depth: int,
32
- *,
33
- include_from_and_to: bool = True,
34
- chunk_size: int,
35
- ) -> AllPathsFromCompleteGraphChunksIter: ...
36
-
37
- class DiGraph:
38
- @property
39
- def num_nodes(self) -> int: ...
40
- @classmethod
41
- def from_adjacency_matrix(
42
- cls,
43
- adjacency_matrix: Bool[np.ndarray, "num_nodes num_nodes"],
44
- ) -> DiGraph: ...
45
- @classmethod
46
- def from_complete_graph(cls, graph: CompleteGraph) -> DiGraph: ...
47
- def insert_from_and_to_nodes(
48
- self,
49
- *,
50
- direct_path: bool = True,
51
- from_adjacency: Bool[np.ndarray, " num_nodes"],
52
- to_adjacency: Bool[np.ndarray, " num_nodes"],
53
- ) -> tuple[int, int]: ...
54
- def disconnect_nodes(self, *nodes: int, fast_mode: bool = True) -> None: ...
55
- def filter_by_mask(
56
- self, mask: Bool[np.ndarray, " num_nodes"], fast_mode: bool = True
57
- ) -> None: ...
58
- def all_paths(
59
- self,
60
- from_: int,
61
- to: int,
62
- depth: int,
63
- *,
64
- include_from_and_to: bool = True,
65
- ) -> AllPathsFromDiGraphIter: ...
66
- def all_paths_array(
67
- self,
68
- from_: int,
69
- to: int,
70
- depth: int,
71
- *,
72
- include_from_and_to: bool = True,
73
- ) -> UInt[np.ndarray, "num_paths path_depth"]: ...
74
- def all_paths_array_chunks(
75
- self,
76
- from_: int,
77
- to: int,
78
- depth: int,
79
- *,
80
- include_from_and_to: bool = True,
81
- chunk_size: int,
82
- ) -> AllPathsFromDiGraphChunksIter: ...
83
-
84
- class AllPathsFromCompleteGraphIter(Iterator, Sized):
85
- def __iter__(self) -> AllPathsFromCompleteGraphIter: ...
86
- def __next__(self) -> UInt[np.ndarray, " path_depth"]: ...
87
- def __len__(self) -> int: ...
88
- def count(self) -> int: ...
89
-
90
- class AllPathsFromCompleteGraphChunksIter(Iterator, Sized):
91
- def __iter__(self) -> AllPathsFromCompleteGraphChunksIter: ...
92
- def __next__(self) -> UInt[np.ndarray, "chunk_size path_depth"]: ...
93
- def __len__(self) -> int: ...
94
- def count(self) -> int: ...
95
-
96
- class AllPathsFromDiGraphIter(Iterator):
97
- def __iter__(self) -> AllPathsFromDiGraphIter: ...
98
- def __next__(self) -> UInt[np.ndarray, " path_depth"]: ...
99
- def count(self) -> int: ...
100
-
101
- class AllPathsFromDiGraphChunksIter(Iterator):
102
- def __iter__(self) -> AllPathsFromDiGraphChunksIter: ...
103
- def __next__(self) -> UInt[np.ndarray, "chunk_size path_depth"]: ...
104
- def count(self) -> int: ...
@@ -1,18 +0,0 @@
1
- class SionnaScene:
2
- shapes: dict[str, Shape]
3
- materials: dict[str, Material]
4
-
5
- @classmethod
6
- def load_xml(cls, file: str) -> SionnaScene: ...
7
-
8
- class Material:
9
- name: str
10
- id: str
11
- color: tuple[float, float, float]
12
- thickness: float | None
13
-
14
- class Shape:
15
- type: str
16
- id: str
17
- file: str
18
- material_id: str
@@ -1,7 +0,0 @@
1
- from differt_core.geometry import TriangleMesh
2
-
3
- class TriangleScene:
4
- mesh: list[TriangleMesh]
5
-
6
- @classmethod
7
- def load_xml(cls, file: str) -> TriangleScene: ...
@@ -1,5 +0,0 @@
1
- """Geometry utilities used by :mod:`differt.geometry`."""
2
-
3
- __all__ = ("TriangleMesh",)
4
-
5
- from ._triangle_mesh import TriangleMesh
@@ -1,5 +0,0 @@
1
- __all__ = ("TriangleMesh",)
2
-
3
- from differt_core import _differt_core
4
-
5
- TriangleMesh = _differt_core.geometry.triangle_mesh.TriangleMesh
File without changes
@@ -1,19 +0,0 @@
1
- """Ray Tracing utilities used by :mod:`differt.rt`."""
2
-
3
- __all__ = (
4
- "AllPathsFromCompleteGraphChunksIter",
5
- "AllPathsFromCompleteGraphIter",
6
- "AllPathsFromDiGraphChunksIter",
7
- "AllPathsFromDiGraphIter",
8
- "CompleteGraph",
9
- "DiGraph",
10
- )
11
-
12
- from ._graph import (
13
- AllPathsFromCompleteGraphChunksIter,
14
- AllPathsFromCompleteGraphIter,
15
- AllPathsFromDiGraphChunksIter,
16
- AllPathsFromDiGraphIter,
17
- CompleteGraph,
18
- DiGraph,
19
- )
@@ -1,19 +0,0 @@
1
- __all__ = (
2
- "AllPathsFromCompleteGraphChunksIter",
3
- "AllPathsFromCompleteGraphIter",
4
- "AllPathsFromDiGraphChunksIter",
5
- "AllPathsFromDiGraphIter",
6
- "CompleteGraph",
7
- "DiGraph",
8
- )
9
-
10
- from differt_core import _differt_core
11
-
12
- AllPathsFromCompleteGraphChunksIter = (
13
- _differt_core.rt.graph.AllPathsFromCompleteGraphChunksIter
14
- )
15
- AllPathsFromCompleteGraphIter = _differt_core.rt.graph.AllPathsFromCompleteGraphIter
16
- AllPathsFromDiGraphChunksIter = _differt_core.rt.graph.AllPathsFromDiGraphChunksIter
17
- AllPathsFromDiGraphIter = _differt_core.rt.graph.AllPathsFromDiGraphIter
18
- CompleteGraph = _differt_core.rt.graph.CompleteGraph
19
- DiGraph = _differt_core.rt.graph.DiGraph
@@ -1,6 +0,0 @@
1
- """Scene utilities used by :mod:`differt.scene`."""
2
-
3
- __all__ = ("Material", "Shape", "SionnaScene", "TriangleScene")
4
-
5
- from ._sionna import Material, Shape, SionnaScene
6
- from ._triangle_scene import TriangleScene
@@ -1,7 +0,0 @@
1
- __all__ = ("Material", "Shape", "SionnaScene")
2
-
3
- from differt_core import _differt_core
4
-
5
- Material = _differt_core.scene.sionna.Material
6
- Shape = _differt_core.scene.sionna.Shape
7
- SionnaScene = _differt_core.scene.sionna.SionnaScene
@@ -1,5 +0,0 @@
1
- __all__ = ("TriangleScene",)
2
-
3
- from differt_core import _differt_core
4
-
5
- TriangleScene = _differt_core.scene.triangle_scene.TriangleScene
File without changes
File without changes
File without changes
@@ -35,6 +35,6 @@ include = [
35
35
  {path = "README.md", format = "sdist"},
36
36
  ]
37
37
  module-name = "differt_core._differt_core"
38
- python-source = "python"
39
38
  strip = true
40
39
  manifest-path = "differt-core/Cargo.toml"
40
+ python-source = "python"
File without changes
File without changes