Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #50

Merged
merged 2 commits into from
Jan 30, 2024
Merged
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:


- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions src/powerbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A package for creating mocks from input isotropic power spectra."""

try:
from importlib.metadata import PackageNotFoundError, version
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions src/powerbox/dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
We note that currently, only positive values for b are implemented (in fact, using negative b is consistent, but
one must be careful that the frequencies returned are descending, rather than ascending).
"""

import warnings

__all__ = ["fft", "ifft", "fftfreq", "fftshift", "ifftshift"]
Expand Down
1 change: 1 addition & 0 deletions src/powerbox/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Tools include those for averaging a field angularly, and generating the isotropic
power spectrum.
"""

import numpy as np
import warnings

Expand Down
4 changes: 1 addition & 3 deletions tests/test_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
def test_power1d():
p = [0] * 40
for i in range(40):
pb = PowerBox(
8001, dim=1, pk=lambda k: 1.0 * k**-2.0, boxlength=1.0, a=0, b=1
)
pb = PowerBox(8001, dim=1, pk=lambda k: 1.0 * k**-2.0, boxlength=1.0, a=0, b=1)

p[i], k = get_power(pb.delta_x(), pb.boxlength, a=0, b=1)

Expand Down
Loading