Skip to content

Commit

Permalink
Merge pull request #62 from jzuhone/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
jzuhone committed Mar 6, 2024
2 parents 1b89404 + e71ea0d commit ef69449
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
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

0 comments on commit ef69449

Please sign in to comment.