Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ on:

jobs:
test:
runs-on: macos-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
python-version: ["3.13", "3.11", "3.9"]
os: [macos-latest, ubuntu-latest]
python-version: ["3.14", "3.13", "3.11", "3.9"]

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install numpy==1.26.4
pip install pytest

- name: Run unit/benchmark tests
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ utilizes Fourier methods combined with analytic expressions to reduce the
computation time to scale as N log N, where N is the number of grid points in
the input linear power spectrum.

NOTE: v3.1.0 and earlier require numpy version < 1.24. This is fixed in v3.1.1 and later, which is available on pip and conda.

Easy installation with pip:

* `pip install fast-pt`
Expand Down
2 changes: 1 addition & 1 deletion fastpt/core/FASTPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def _get_sig4(self, P, P_window=None, C_window=None):
# Returns relevant correlations (including contraction factors),
# but WITHOUT bias values and other pre-factors.
# Uses standard "full initialization" of J terms
sig4 = np.trapz(self.k_extrap ** 3 * Ps ** 2, x=np.log(self.k_extrap)) / (2. * pi ** 2)
sig4 = np.trapezoid(self.k_extrap ** 3 * Ps ** 2, x=np.log(self.k_extrap)) / (2. * pi ** 2)
self.cache.set(sig4, "sig4", hash_key, P_hash)
return sig4

Expand Down
4 changes: 2 additions & 2 deletions fastpt/core/FASTPT_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def P_bias(self,P,P_window=None,C_window=None):
# Uses standard "full initialization" of J terms

Power, mat=self.J_k(P,P_window=P_window,C_window=C_window)
sig4=np.trapz(self.k_old**2*Power**2,x=self.k_old)/(2.*pi**2)
#sig2=np.trapz(self.k_old**2*Power,x=self.k_old)/(2.*pi**2)
sig4=np.trapezoid(self.k_old**2*Power**2,x=self.k_old)/(2.*pi**2)
#sig2=np.trapezoid(self.k_old**2*Power,x=self.k_old)/(2.*pi**2)

Pd1d2=2.*(17./21*mat[0,:]+mat[4,:]+4./21*mat[1,:])
Pd2d2=2.*(mat[0,:])
Expand Down
1 change: 0 additions & 1 deletion fastpt/utils/matter_power_spt.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import numpy as np
from numpy import log, exp, pi
#from scipy.integrate import trapz
from scipy.signal import fftconvolve
from .J_k import J_k
import sys
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "fast-pt"
dynamic = ["version"]
requires-python = ">=3.7"
requires-python = ">=3.9"
description = "FAST-PT is a code to calculate quantities in cosmological perturbation theory at 1-loop (including, e.g., corrections to the matter power spectrum)."
readme = "README.md"
license = { file = "LICENSE" }
Expand All @@ -32,9 +32,9 @@ keywords = [
'Perturbation-Theory'
]
dependencies = [
"numpy>=1.17",
"scipy>=1.2",
"matplotlib>=3.0"
"numpy>=2.0",
"scipy>=1.13",
"matplotlib>=3.9"
]

[project.optional-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy>=1.17
scipy>=1.2
matplotlib>=3.0
numpy>=2.0
scipy>=1.13
matplotlib>=3.9