From 5713654e8f39d9b6268b1fe04bdbcdb05c75db48 Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Fri, 9 Jan 2026 11:27:00 -0500 Subject: [PATCH 1/3] Update macOS version in CI workflow --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c8569196..90eaea2b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: os: - # - macos-12 + - macos-15-intel # intel - macos-latest # arm64 # - windows-latest - ubuntu-latest From 360ec2c8119d6fc917304369a6120ceb9d6ab998 Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Fri, 9 Jan 2026 11:33:44 -0500 Subject: [PATCH 2/3] remove warning Removed Intel architecture warning for macOS. --- src/con_duct/duct_main.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/con_duct/duct_main.py b/src/con_duct/duct_main.py index 591fd469..12418a77 100755 --- a/src/con_duct/duct_main.py +++ b/src/con_duct/duct_main.py @@ -45,15 +45,6 @@ def _str2bool(value: str | bool | None) -> bool | None: else: raise ValueError(f"Cannot interpret '{value}' as boolean.") - -is_mac_intel = sys.platform == "darwin" and os.uname().machine == "x86_64" -if is_mac_intel and not _str2bool(value=os.getenv("DUCT_IGNORE_INTEL_WARNING")): - message = ( - "Detected system macOS running on intel architecture - " - "duct may experience issues with sampling and signal handling.\n\n" - "Set the environment variable `DUCT_IGNORE_INTEL_WARNING` to suppress this warning.\n" - ) - warnings.warn(message=message, stacklevel=2) SYSTEM = platform.system() lgr = logging.getLogger("con-duct") From 0f17615e83f8449cb0a95fa1f6b2ac65e5b247ee Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Fri, 9 Jan 2026 12:33:03 -0500 Subject: [PATCH 3/3] Drop str2bool and warnings Removed unused boolean conversion function and sets. --- src/con_duct/duct_main.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/con_duct/duct_main.py b/src/con_duct/duct_main.py index 12418a77..2a4957e6 100755 --- a/src/con_duct/duct_main.py +++ b/src/con_duct/duct_main.py @@ -22,29 +22,10 @@ import time from types import FrameType from typing import IO, Any, Callable, Optional, TextIO -import warnings __version__ = version("con-duct") __schema_version__ = "0.2.2" -_true_set = {"yes", "true", "t", "y", "1"} -_false_set = {"no", "false", "f", "n", "0"} - - -def _str2bool(value: str | bool | None) -> bool | None: - if value is None: - return False - if isinstance(value, bool): - return value - - val_lower = value.lower() - if val_lower in _true_set: - return True - elif val_lower in _false_set: - return False - else: - raise ValueError(f"Cannot interpret '{value}' as boolean.") - SYSTEM = platform.system() lgr = logging.getLogger("con-duct")