diff --git a/.github/workflows/continuous-integration-pip.yml b/.github/workflows/continuous-integration-pip.yml index 72c935f49..44060a447 100644 --- a/.github/workflows/continuous-integration-pip.yml +++ b/.github/workflows/continuous-integration-pip.yml @@ -38,115 +38,115 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=8 --max-line-length=88 --statistics --exclude="examples/* *.npy docs/* *.pyx *.pxd" - testing_unix: - needs: [code_lint] - runs-on: "ubuntu-latest" - strategy: - matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] - - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 - with: - python-version: ${{ matrix.python-version }} - - - name: Install linux system dependencies - run: | - sudo apt-get install --yes libopenblas-dev libfftw3-dev - gcc -v - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools - pip install -r requirements-dev.txt - - - name: Build and install package from source - run: python setup.py develop - - - name: Test with pytest - run: | - python -m pip install pytest -U - pytest --cov=./ --cov-report=xml - - - name: Upload coverage - uses: codecov/codecov-action@v5.5.1 - - testing_mac_arm: - needs: [code_lint] - runs-on: "macos-latest" - strategy: - matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] - - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 - with: - python-version: ${{ matrix.python-version }} - - - name: Install macos system dependencies - run: brew install openblas fftw - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools - pip install -r requirements-dev.txt - - - name: Build and install package from source - run: python setup.py develop - - - name: Test with pytest - run: | - python -m pip install pytest -U - pytest --cov=./ --cov-report=xml - - - name: Upload coverage - uses: codecov/codecov-action@v5.5.1 - - testing_mac_intel: - needs: [code_lint] - runs-on: "macos-13" - strategy: - matrix: - python-version: ["3.12", "3.13"] - - steps: - - name: Checkout - uses: actions/checkout@v5 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 - with: - python-version: ${{ matrix.python-version }} - - - name: Install macos system dependencies - run: brew install openblas fftw - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools - pip install -r requirements-dev.txt - - - name: Build and install package from source - run: python setup.py develop - - - name: Test with pytest - run: | - python -m pip install pytest -U - pytest --cov=./ --cov-report=xml - - - name: Upload coverage - uses: codecov/codecov-action@v5.5.1 + # testing_unix: + # needs: [code_lint] + # runs-on: "ubuntu-latest" + # strategy: + # matrix: + # python-version: ["3.10", "3.11", "3.12", "3.13"] + + # steps: + # - name: Checkout + # uses: actions/checkout@v5 + + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v6 + # with: + # python-version: ${{ matrix.python-version }} + + # - name: Install linux system dependencies + # run: | + # sudo apt-get install --yes libopenblas-dev libfftw3-dev + # gcc -v + + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install setuptools + # pip install -r requirements-dev.txt + + # - name: Build and install package from source + # run: python setup.py develop + + # - name: Test with pytest + # run: | + # python -m pip install pytest -U + # pytest --cov=./ --cov-report=xml + + # - name: Upload coverage + # uses: codecov/codecov-action@v5.5.1 + + # testing_mac_arm: + # needs: [code_lint] + # runs-on: "macos-latest" + # strategy: + # matrix: + # python-version: ["3.10", "3.11", "3.12", "3.13"] + + # steps: + # - name: Checkout + # uses: actions/checkout@v5 + + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v6 + # with: + # python-version: ${{ matrix.python-version }} + + # - name: Install macos system dependencies + # run: brew install openblas fftw + + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install setuptools + # pip install -r requirements-dev.txt + + # - name: Build and install package from source + # run: python setup.py develop + + # - name: Test with pytest + # run: | + # python -m pip install pytest -U + # pytest --cov=./ --cov-report=xml + + # - name: Upload coverage + # uses: codecov/codecov-action@v5.5.1 + + # testing_mac_intel: + # needs: [code_lint] + # runs-on: "macos-13" + # strategy: + # matrix: + # python-version: ["3.12", "3.13"] + + # steps: + # - name: Checkout + # uses: actions/checkout@v5 + + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v6 + # with: + # python-version: ${{ matrix.python-version }} + + # - name: Install macos system dependencies + # run: brew install openblas fftw + + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install setuptools + # pip install -r requirements-dev.txt + + # - name: Build and install package from source + # run: python setup.py develop + + # - name: Test with pytest + # run: | + # python -m pip install pytest -U + # pytest --cov=./ --cov-report=xml + + # - name: Upload coverage + # uses: codecov/codecov-action@v5.5.1 testing_windows: needs: [code_lint] @@ -173,6 +173,8 @@ jobs: - run: | conda --version which python + get-childitem ${CONDA_PREFIX}/include -name "fftw3.h" + get-childitem ${CONDA_PREFIX}/include -name "cblas.h" - name: Build and install package from source shell: pwsh diff --git a/src/c_lib/base/base_model.pyx b/src/c_lib/base/base_model.pyx index 1bcc78b99..53728adf2 100644 --- a/src/c_lib/base/base_model.pyx +++ b/src/c_lib/base/base_model.pyx @@ -150,7 +150,7 @@ def core_simulator(method, dim_sidebands.append(number_of_sidebands if np.any(track) else 1) - # Assing values to previously defined C numpy arrays + # Assign values to previously defined C numpy arrays frac = np.asarray(fr, dtype=np.float64) dur = np.asarray(du, dtype=np.float64) is_spectral = np.asarray(is_spec, dtype=np.uint8)