Skip to content

Commit 821e07e

Browse files
committed
Fixed a silly bug in BaseSample.nHs - was calling np.Quantity for some reason. Closes issue #1142
1 parent b79de4e commit 821e07e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xga/samples/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This code is a part of X-ray: Generate and Analyse (XGA), a module designed for the XMM Cluster Survey (XCS).
2-
# Last modified by David J Turner (turne540@msu.edu) 28/11/2023, 23:06. Copyright (c) The Contributors
2+
# Last modified by David J Turner (turne540@msu.edu) 26/07/2024, 10:59. Copyright (c) The Contributors
33

44
from typing import Union, List, Dict
55
from warnings import warn
@@ -178,7 +178,7 @@ def nHs(self) -> Quantity:
178178
:return: List of nH values.
179179
:rtype: Quantity
180180
"""
181-
return np.Quantity([s.nH for s in self._sources.values()])
181+
return Quantity([s.nH for s in self._sources.values()])
182182

183183
@property
184184
def cosmo(self):

0 commit comments

Comments
 (0)