differt 0.0.32__tar.gz → 0.0.33__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.
- {differt-0.0.32 → differt-0.0.33}/PKG-INFO +2 -2
- {differt-0.0.32 → differt-0.0.33}/pyproject.toml +1 -1
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_material.py +2 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/scene/_sionna.py +24 -3
- {differt-0.0.32 → differt-0.0.33}/src/differt/scene/_triangle_scene.py +3 -0
- {differt-0.0.32 → differt-0.0.33}/.gitignore +0 -0
- {differt-0.0.32 → differt-0.0.33}/LICENSE.md +0 -0
- {differt-0.0.32 → differt-0.0.33}/README.md +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/__init__.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/_version.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/__init__.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_antenna.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_constants.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_fresnel.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_interaction_type.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_utd.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/em/_utils.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/geometry/__init__.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/geometry/_paths.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/geometry/_triangle_mesh.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/geometry/_utils.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/plotting/__init__.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/plotting/_core.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/plotting/_utils.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/py.typed +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/rt/__init__.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/rt/_fermat.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/rt/_image_method.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/rt/_utils.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/scene/__init__.py +0 -0
- {differt-0.0.32 → differt-0.0.33}/src/differt/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DiffeRT
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.33
|
|
4
4
|
Summary: Differentiable Ray Tracing Toolbox for Radio Propagation Simulations
|
|
5
5
|
Project-URL: Changelog, https://github.com/jeertmans/DiffeRT/releases
|
|
6
6
|
Project-URL: Documentation, https://eertmans.be/DiffeRT
|
|
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
21
21
|
Classifier: Topic :: Scientific/Engineering
|
|
22
22
|
Requires-Python: >=3.10
|
|
23
23
|
Requires-Dist: chex>=0.1.86
|
|
24
|
-
Requires-Dist: differt-core==0.0.
|
|
24
|
+
Requires-Dist: differt-core==0.0.33
|
|
25
25
|
Requires-Dist: equinox>=0.11.5
|
|
26
26
|
Requires-Dist: filelock>=3.15.4
|
|
27
27
|
Requires-Dist: jax>=0.4.32
|
|
@@ -42,6 +42,8 @@ class Material(eqx.Module):
|
|
|
42
42
|
Returns:
|
|
43
43
|
A tuple containing the relative permittivity and conductivity of the material.
|
|
44
44
|
"""
|
|
45
|
+
thickness: Float[ArrayLike, ""] | None = eqx.field(default=None)
|
|
46
|
+
"""The thickness of the material."""
|
|
45
47
|
aliases: tuple[str, ...] = eqx.field(default=(), static=True)
|
|
46
48
|
"""
|
|
47
49
|
A tuple of name aliases for the material.
|
|
@@ -22,6 +22,8 @@ SIONNA_SCENES_FOLDER = Path(__file__).parent / "scenes"
|
|
|
22
22
|
|
|
23
23
|
def download_sionna_scenes(
|
|
24
24
|
branch_or_tag: str = "main",
|
|
25
|
+
repo: str = "NVlabs/sionna-rt",
|
|
26
|
+
scenes_folder: str = "src/sionna/rt/scenes/",
|
|
25
27
|
*,
|
|
26
28
|
folder: str | Path = SIONNA_SCENES_FOLDER,
|
|
27
29
|
cached: bool = True,
|
|
@@ -44,6 +46,11 @@ def download_sionna_scenes(
|
|
|
44
46
|
|
|
45
47
|
Args:
|
|
46
48
|
branch_or_tag: The branch or tag version of the Sionna repository.
|
|
49
|
+
repo: The repository ``{owner}/{name}`` on GitHub from which to download the scenes.
|
|
50
|
+
|
|
51
|
+
E.g., you can change this if you want to use a fork instead.
|
|
52
|
+
scenes_folder: The folder where the scenes are stored in the
|
|
53
|
+
repository.
|
|
47
54
|
folder: Where to extract the scene files, i.e., the content
|
|
48
55
|
of ``sionna/rt/scenes/``.
|
|
49
56
|
cached: Whether to avoid downloading again if the target folder
|
|
@@ -66,7 +73,7 @@ def download_sionna_scenes(
|
|
|
66
73
|
|
|
67
74
|
folder.rmdir()
|
|
68
75
|
|
|
69
|
-
url = f"https://codeload.github.com/
|
|
76
|
+
url = f"https://codeload.github.com/{repo}/tar.gz/{branch_or_tag}"
|
|
70
77
|
|
|
71
78
|
response = requests.get(url, stream=True, timeout=timeout)
|
|
72
79
|
|
|
@@ -75,8 +82,8 @@ def download_sionna_scenes(
|
|
|
75
82
|
|
|
76
83
|
def members(tar: tarfile.TarFile) -> Iterator[tarfile.TarInfo]:
|
|
77
84
|
for member in tar.getmembers():
|
|
78
|
-
if (index := member.path.find(
|
|
79
|
-
member.path = member.path[index +
|
|
85
|
+
if (index := member.path.find(scenes_folder)) >= 0:
|
|
86
|
+
member.path = member.path[index + len(scenes_folder) :]
|
|
80
87
|
yield member
|
|
81
88
|
|
|
82
89
|
with (
|
|
@@ -181,6 +188,20 @@ def main() -> None: # pragma: no cover
|
|
|
181
188
|
nargs="?",
|
|
182
189
|
help="branch or tag version of the Sionna repository.",
|
|
183
190
|
)
|
|
191
|
+
parser.add_argument(
|
|
192
|
+
"-r",
|
|
193
|
+
"--repo",
|
|
194
|
+
type=str,
|
|
195
|
+
default="NVlabs/sionna-rt",
|
|
196
|
+
help="the repository '{owner}/{name}' on GitHub from which to download the scenes.",
|
|
197
|
+
)
|
|
198
|
+
parser.add_argument(
|
|
199
|
+
"-s",
|
|
200
|
+
"--scenes-folder",
|
|
201
|
+
type=Path,
|
|
202
|
+
default="src/sionna/rt/scenes",
|
|
203
|
+
help="the folder where the scenes are stored in the repository.",
|
|
204
|
+
)
|
|
184
205
|
parser.add_argument(
|
|
185
206
|
"--folder",
|
|
186
207
|
type=Path,
|
|
@@ -189,6 +189,9 @@ def _compute_paths(
|
|
|
189
189
|
axis=-1
|
|
190
190
|
) # Any path segment being too small
|
|
191
191
|
|
|
192
|
+
# TODO: check if we should invalidate non-finite paths
|
|
193
|
+
# is_finite = jnp.isfinite(full_paths).all(axis=(-1, -2))
|
|
194
|
+
|
|
192
195
|
mask = inside_triangles & valid_reflections & ~blocked & ~too_small
|
|
193
196
|
|
|
194
197
|
return full_paths, mask
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|