From 6d94c039cfce24cf1b7b80b907c3701aca551385 Mon Sep 17 00:00:00 2001 From: Chen Heroy Date: Tue, 21 Jul 2026 14:21:45 -0600 Subject: [PATCH 1/2] wrapping v1.2 LFMF C++ library --- .github/workflows/pytest.yml | 2 +- .github/workflows/release.yml | 2 +- .zenodo.json | 2 +- CITATION.cff | 2 +- src/ITS/Propagation/LFMF/LFMF.py | 2 +- src/ITS/Propagation/LFMF/__init__.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index e8d33ee..cc7d18c 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,7 +16,7 @@ concurrency: env: LIBRARY_BASE_REPO: NTIA/LFMF - LIBRARY_RELEASE_TAG: v1.1 + LIBRARY_RELEASE_TAG: v1.2-rc.1 LIBRARY_DESTINATION_DIRECTORY: 'src/ITS/Propagation/LFMF' jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f029087..3fb2cd8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ on: env: LIBRARY_BASE_REPO: NTIA/LFMF - LIBRARY_RELEASE_TAG: v1.1 + LIBRARY_RELEASE_TAG: v1.2-rc.1 LIBRARY_DESTINATION_DIRECTORY: 'src/ITS/Propagation/LFMF/' jobs: diff --git a/.zenodo.json b/.zenodo.json index 833748a..8e6cc3e 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -38,5 +38,5 @@ "resource_type": "publication-softwaredocumentation" } ], - "version": "1.1.0" + "version": "1.2.0" } diff --git a/CITATION.cff b/CITATION.cff index 9aed93e..ecede78 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -39,4 +39,4 @@ keywords: - propagation - lfmf - antennas -version: 1.1.0 +version: 1.2.0 diff --git a/src/ITS/Propagation/LFMF/LFMF.py b/src/ITS/Propagation/LFMF/LFMF.py index 50dbaa0..3f97da1 100644 --- a/src/ITS/Propagation/LFMF/LFMF.py +++ b/src/ITS/Propagation/LFMF/LFMF.py @@ -32,7 +32,7 @@ class LFMFResult(Structure): # Load the shared library -lib = PropLibCDLL("LFMF-1.1") +lib = PropLibCDLL("LFMF-1.2") # Define function prototypes lib.LFMF.restype = c_int diff --git a/src/ITS/Propagation/LFMF/__init__.py b/src/ITS/Propagation/LFMF/__init__.py index a0bde28..988c932 100644 --- a/src/ITS/Propagation/LFMF/__init__.py +++ b/src/ITS/Propagation/LFMF/__init__.py @@ -1,6 +1,6 @@ # Version X.Y.Z: X.Y is the version of the C++ source, # and Z is the version of this Python wrapper -__version__ = "1.1.0" +__version__ = "1.2.0" from .LFMF import ( LFMF, From 4663260bba16e141c9187c134b225e4a1d23651c Mon Sep 17 00:00:00 2001 From: Chen Heroy Date: Thu, 3 Sep 2026 13:58:25 -0600 Subject: [PATCH 2/2] update function name --- src/ITS/Propagation/LFMF/proplib_loader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ITS/Propagation/LFMF/proplib_loader.py b/src/ITS/Propagation/LFMF/proplib_loader.py index 21702e3..49cac20 100644 --- a/src/ITS/Propagation/LFMF/proplib_loader.py +++ b/src/ITS/Propagation/LFMF/proplib_loader.py @@ -55,8 +55,8 @@ def __init__(self, name): # Define expected function prototypes self.GetReturnStatusCharArray.restype = POINTER(c_char_p) self.GetReturnStatusCharArray.argtypes = (c_int,) - self.FreeReturnStatusCharArray.restype = None - self.FreeReturnStatusCharArray.argtypes = (POINTER(c_char_p),) + self.FreeCharArray.restype = None + self.FreeCharArray.argtypes = (POINTER(c_char_p),) @staticmethod def get_lib_name(lib_name: str) -> str: @@ -108,5 +108,5 @@ def err_check(self, rtn_code: int) -> None: else: msg = self.GetReturnStatusCharArray(c_int(rtn_code)) msg_str = cast(msg, c_char_p).value.decode("utf-8") - self.FreeReturnStatusCharArray(msg) + self.FreeCharArray(msg) raise RuntimeError(msg_str)