Skip to content

Commit

Permalink
fix gcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Gilman committed Nov 1, 2024
1 parent 695637e commit a055fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyHalo/realization_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def add_globular_clusters(self, log10_mgc_mean, log10_mgc_sigma, rendering_radiu
:param coordinate_center_y: center of rendering area in arcsec
:return: an instance of Realization that includes the GC's
"""
if isinstance(center_x, int) or isinstance(center_x, np.ndarray):
if isinstance(center_x, int) or isinstance(center_x, float):
center_x = [center_x]
center_y = [center_y]
assert len(center_x) == len(center_y)
Expand Down

0 comments on commit a055fb8

Please sign in to comment.