cfsem 3.0.2__tar.gz → 3.0.3__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.
- {cfsem-3.0.2 → cfsem-3.0.3}/CHANGELOG.md +7 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/PKG-INFO +1 -1
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/bindings.py +2 -2
- {cfsem-3.0.2 → cfsem-3.0.3}/pyproject.toml +1 -1
- {cfsem-3.0.2 → cfsem-3.0.3}/uv.lock +1 -1
- {cfsem-3.0.2 → cfsem-3.0.3}/.cargo/config.toml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/.github/workflows/release_python.yml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/.github/workflows/release_rust.yml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/.github/workflows/test_python.yml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/.github/workflows/test_rust.yml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/.gitignore +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/.readthedocs.yml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/CHANGELOG_PYTHON_ARCHIVE.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/CHANGELOG_RUST_ARCHIVE.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/CONTRIBUTING.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/Cargo.lock +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/Cargo.toml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/LICENSE +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/README.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/benches/circular_filament.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/benches/linear_filament.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/benches/point_source.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/build_docs.sh +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/__init__.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/py.typed +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/solenoid_stress/__init__.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/solenoid_stress/solenoid_1d.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/solenoid_stress/solenoid_handcalc.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/solenoid_stress/thick_wall_cylinder_handcalc.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/cfsem/types.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/assets/logo.svg +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/index.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/javascripts/mathjax.js +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/example_outputs/.placeholder +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/examples.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/filament.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/flux_density.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/force.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/grad_shafranov.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/inductance.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/math.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/solenoid_stress.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/types.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/python/vector_potential.md +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/requirements.txt +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/docs/stylesheets/extra.css +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/examples/helmholtz.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/examples/inductance.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/katex-header.html +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/mkdocs.yml +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/lib.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/math.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/mesh.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/biotsavart.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/circular_filament.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/gradshafranov.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/linear_filament.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/mesh_filament.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/mod.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/point_source.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/physics/volumetric.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/python.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/src/testing.rs +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/__init__.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_electromagnetics.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_examples.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_filaments.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_funcs.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_gradshafranov.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_math.py +0 -0
- {cfsem-3.0.2 → cfsem-3.0.3}/test/test_solenoid_stress.py +0 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0.3 2025-11-06
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
* Use ternary instead of or-defaulting for array defaults in dipole functions
|
|
8
|
+
* Eliminates issue with ambiguous truthiness of arrays under some circumstances
|
|
9
|
+
|
|
3
10
|
## 3.0.2 2025-11-05
|
|
4
11
|
|
|
5
12
|
### Changed
|
|
@@ -492,7 +492,7 @@ def flux_density_dipole(
|
|
|
492
492
|
loc = _3tup_contig(loc)
|
|
493
493
|
moment = _3tup_contig(moment)
|
|
494
494
|
xyzp = _3tup_contig(xyzp)
|
|
495
|
-
outer_radius = outer_radius
|
|
495
|
+
outer_radius = outer_radius if outer_radius is not None else zeros_like(loc[0])
|
|
496
496
|
outer_radius = ascontiguousarray(outer_radius).ravel()
|
|
497
497
|
|
|
498
498
|
bx, by, bz = em_flux_density_dipole(loc, moment, xyzp, outer_radius, par) # [T]
|
|
@@ -523,7 +523,7 @@ def vector_potential_dipole(
|
|
|
523
523
|
loc = _3tup_contig(loc)
|
|
524
524
|
moment = _3tup_contig(moment)
|
|
525
525
|
xyzp = _3tup_contig(xyzp)
|
|
526
|
-
outer_radius = outer_radius
|
|
526
|
+
outer_radius = outer_radius if outer_radius is not None else zeros_like(loc[0])
|
|
527
527
|
outer_radius = ascontiguousarray(outer_radius).ravel()
|
|
528
528
|
|
|
529
529
|
ax, ay, az = em_vector_potential_dipole(loc, moment, xyzp, outer_radius, par) # [T]
|
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "cfsem"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.3"
|
|
8
8
|
description = "Quasi-steady electromagnetics including filamentized approximations, Biot-Savart, and Grad-Shafranov."
|
|
9
9
|
authors = [{name = "Commonwealth Fusion Systems", email = "jlogan@cfs.energy"}]
|
|
10
10
|
requires-python = ">=3.10, <3.14"
|
|
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
|
|
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
|
|
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
|