Skip to content

Commit

Permalink
Merge pull request #1248 from DavidT3/bug/corePntSourceClusterSampleI…
Browse files Browse the repository at this point in the history
…ssueAgain

Fixed another mistake in the ClusterSample init related to the core p…
  • Loading branch information
DavidT3 authored Nov 5, 2024
2 parents a9a36fc + ce217b6 commit 511eabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xga/samples/extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def __init__(self, ra: np.ndarray, dec: np.ndarray, redshift: np.ndarray, name:
# or lists/arrays of bools can be passed, so we just need to disentangle that
# If we get here then the preceding code has already made sure that the type is correct, and that
# (if a non-scalar value was passed) every cluster has an entry
if include_core_pnt_srcs is bool:
if type(include_core_pnt_srcs) == bool:
cur_inc_core_pnt_src = include_core_pnt_srcs
else:
cur_inc_core_pnt_src = include_core_pnt_srcs[ind]
Expand Down

0 comments on commit 511eabf

Please sign in to comment.