Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent d817ad3 commit e71ea0d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
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 e71ea0d

Please sign in to comment.