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 #62

Merged
merged 2 commits into from
Mar 6, 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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black-jupyter

Expand All @@ -26,7 +26,7 @@ repos:
name: isort (cython)
types: [cython]
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [
Expand Down
1 change: 1 addition & 0 deletions pyxsim/event_list.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes for generating lists of detected events
"""

import os

import astropy.wcs as pywcs
Expand Down
1 change: 1 addition & 0 deletions pyxsim/photon_list.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes for generating lists of photons
"""

import h5py
import numpy as np
from soxs import __version__ as soxs_version
Expand Down
3 changes: 3 additions & 0 deletions pyxsim/spectral_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Photon emission and absoprtion models.
"""

import numpy as np
from scipy.interpolate import interp1d
from soxs.constants import K_per_keV
Expand Down Expand Up @@ -605,6 +606,7 @@ class TBabsModel(AbsorptionModel):
--------
>>> tbabs_model = TBabsModel(0.1)
"""

_name = "tbabs"

def __init__(self, nH, abund_table="angr"):
Expand All @@ -630,6 +632,7 @@ class WabsModel(AbsorptionModel):
--------
>>> wabs_model = WabsModel(0.1)
"""

_name = "wabs"

def __init__(self, nH, abund_table="angr"):
Expand Down
3 changes: 1 addition & 2 deletions pyxsim/tests/test_line_emission.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ def _dm_emission(field, data):

assert np.abs(loc - E.mean()) < 1.645 * sig / np.sqrt(n_E)
assert (
np.abs(E.std() ** 2 - sig * sig)
< 1.645 * np.sqrt(2 * (n_E - 1)) * sig**2 / n_E
np.abs(E.std() ** 2 - sig * sig) < 1.645 * np.sqrt(2 * (n_E - 1)) * sig**2 / n_E
)
assert np.abs(n_E - n_E_pred) < 1.645 * np.sqrt(n_E)

Expand Down
1 change: 1 addition & 0 deletions pyxsim/tests/test_sloshing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Answer test pyxsim.
"""

import h5py
import numpy as np
import yt
Expand Down
Loading