Skip to content

Releases

v2.4.0: abi3 wheels + Windows

Choose a tag to compare

@tmolteno tmolteno released this 09 Nov 21:00

v2.4.0 — stable-ABI (abi3) wheels, first Windows wheels

Both packages now ship one cp311-abi3 wheel per platform instead of one
wheel per Python version — a single install works on CPython 3.11 – 3.14
and newer:

Platform Wheel tag
Linux x86_64 cp311-abi3-manylinux_*
macOS Apple Silicon cp311-abi3-macosx_arm64
macOS Intel cp311-abi3-macosx_10_9_x86_64
Windows x64 (new) cp311-abi3-win_amd64

Free-threaded CPython (cp314t) is not covered by the stable ABI — install
from the sdist there (built automatically with the full API).

Bundled NEC2++ engine

necpp_src is pinned at d32ed8f (necpp master, including PR #140 — the
nec2diff negative-value comparison / exit-status fixes for #138 and the gshank
Sommerfeld convergence-floor revert for #139). The revision is embedded in
every build as necpp_engine_sha=<commit> (verify with strings).

Other changes

  • Compiled with Py_LIMITED_API=0x030B0000; every wheel is audited with
    abi3audit in CI and tested on CPython 3.11 and 3.14 across all four
    platforms (16 test jobs per package).
  • Source builds now require SWIG >= 4.4.1 (CI pins 4.5.1); release sdists
    include the generated wrapper, so installing from an sdist needs no SWIG.
  • PyNEC's -fPIC / -lstdc++ flags are now POSIX-only so MSVC builds work.

Closes #35.

v2.3.5

Choose a tag to compare

@tmolteno tmolteno released this 09 Nov 09:53

What's Changed

  • Update necpp_src to tmolteno/necpp@d32ed8f — see upstream changelog
    • Fixes #139 (Sommerfeld interpolation): c_ggrid::interpolate had its cache-guard branches exchanged relative to the NEC-2 reference INTRP, producing wire-order-dependent impedance, accepted power and gain over a Sommerfeld (GN 2) ground. Fixed upstream in necpp@e3f81e6; PyNEC 2.3.4 pinned a pre-fix snapshot, which is why it reproduced there. With the corrected guard, wire insertion order no longer affects results (verified bit-identical on the issue reproducer, impedance agreeing with the nec2c reference engine).
    • Fixes a non-terminating Sommerfeld integration regression (necpp#140): a loosened gshank() convergence floor degraded the Sommerfeld tables on decks with wires close to a GN 2 ground until the rom2() integrator never converged (endless ROM2 -- STEP SIZE LIMITED output). Floor restored; the issue #139 deck now completes in milliseconds.
    • Fixes nec2diff (#138) (affects the nec2++ package): negative values are now compared (any two negative values used to compare equal), sign flips give finite differences, and the exit status is 1 when files differ.
    • Regression tests added upstream for all of the above.
  • Behavior change carried over from necpp 2.3.5: completing the geometry with GE 1 (or -1) without a subsequent GN card now raises an exception at simulate time, instead of silently running free space. Free-space models should complete the geometry with GE 0 (geometry_complete(0)). The test_example1 example has been updated accordingly.

The issue #139 reproducer (reproduce.py) passes wire-order invariance against this release.

Full Changelog: v2.3.4...v2.3.5

v2.3.4

Choose a tag to compare

@tmolteno tmolteno released this 02 Aug 22:11

What's Changed

  • Update necpp_src to v2.3.4 — see upstream changelog
    • Breaking: get_impedance_real/imag now accept feed_index parameter (imp.back() → imp[0])
    • New: nec_impedance_real_indexed/imag_indexed C API for specific feeds
    • Doxygen documentation for multi-feed access patterns
    • v2.3.3: Fix GX solve and three-plane symmetry reflection
  • Update PyNEC SWIG interface to match new impedance API

Full Changelog: v2.3.2...v2.3.4

v2.3.2

Choose a tag to compare

@tmolteno tmolteno released this 01 Aug 02:19

What's Changed

  • Update necpp_src to v2.3.2 — see upstream changelog
    • v2.3.2: NE/NH near-field blank count defaults to 1 (NEC-2 Part 3 compliance)
    • v2.3.2: Memory safety fixes — prevent duplicate close and invalid pattern reads
    • v2.3.2: Fix uninitialized read for average-only radiation-pattern rows
    • v2.3.1: Upgrade segment/patch counts to int64_t for large simulations
    • v2.3.0: Fix flat-spiral helix (GH HL=0) degenerating to straight wire

Full Changelog: v2.2.6...v2.3.2

v2.2.6

Choose a tag to compare

@tmolteno tmolteno released this 25 Jul 05:14

What's Changed

  • Add Python 3.14 wheel builds (cp314 on Linux + macOS ARM)
  • Drop Python 3.10 wheels — minimum supported version is now 3.11
  • Bump requires-python from >=3.9 to >=3.11
  • Add Programming Language :: Python :: 3.14 classifier

Full Changelog: v2.2.5...v2.2.6

v2.2.5

Choose a tag to compare

@tmolteno tmolteno released this 25 Jul 04:14

What's Changed

  • Fix: Include Eigen headers in source distribution. graft necpp_src/src/eigen added to MANIFEST.in so pip install from sdist no longer fails with fatal error: Eigen/Dense: No such file or directory.
  • Use recursive-include for necpp_src/src to ensure all headers and sources are packaged.

v2.2.4

  • Auto-generate config.h in setup.py — no longer requires CMake before pip install

Full Changelog: v2.2.4...v2.2.5

v2.2.4

Choose a tag to compare

@tmolteno tmolteno released this 25 Jul 04:04

What's Changed

  • Fix: pip install pynec and pip install necpp now work from source distribution without requiring CMake to be pre-run. config.h is auto-generated by setup.py at build time.
  • Clean up docs: remove Python 2 references, outdated NEWS, stale install instructions
  • Fix necpp README Python 3 syntax in example code

Full Changelog: v2.2.3...v2.2.4

v2.2.3 — SC-card geometry fix + re-enabled patch test

Choose a tag to compare

@tmolteno tmolteno released this 25 Jul 02:39

Changes

  • Bump necpp_src submodule to include:
    • fix(geometry): stop SC API cards from expanding into patch grids (#120) — resolves the hang in nec_rp_card on surface-patch geometries
    • fix(safe_array): use eigen_segment where callers mean a length (#121)
  • Re-enable test_multiple_sc_cards::test_patch (no longer hangs)
  • Update expected impedance/gain values to match corrected geometry

v2.2.2 — SC-card geometry fix + re-enabled patch test

Choose a tag to compare

@tmolteno tmolteno released this 25 Jul 02:30

Changes

  • Bump necpp_src submodule to include:
    • fix(geometry): stop SC API cards from expanding into patch grids (#120) — resolves the hang in nec_rp_card on surface-patch geometries
    • fix(safe_array): use eigen_segment where callers mean a length (#121)
  • Re-enable test_multiple_sc_cards::test_patch (no longer hangs)
  • Update expected impedance/gain values to match corrected geometry

v2.2.1 — CMake-based necpp v2.2.0 engine, build fixes

Choose a tag to compare

@tmolteno tmolteno released this 22 Jul 23:07

v2.2.1

Changes

  • Build fixes for the CMake-based necpp (v2.2.0) submodule:
    • Exclude nec_wasm.cpp from the Python extension source glob (Emscripten-only; broke native builds).
    • necpp/build.sh: fix submodule init (--init), document the necpp_src symlink required by setup.py.
    • PyNEC/setup.py: remove dead necpp_src/win32/ include dir (gone in CMake necpp; config.h is now CMake-generated in build/).
    • MANIFEST.in: point config.h include at src/config.h.in (generated, not committed).
    • Fix stale config.h comments in both setup.py files.
  • Version bump to 2.2.1.