From a055fb8b5d37e1154b1718daf7f89942603b2a6d Mon Sep 17 00:00:00 2001 From: Daniel Gilman Date: Fri, 1 Nov 2024 11:27:59 +0900 Subject: [PATCH] fix gcs --- pyHalo/realization_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyHalo/realization_extensions.py b/pyHalo/realization_extensions.py index 5ca661c..65d82da 100644 --- a/pyHalo/realization_extensions.py +++ b/pyHalo/realization_extensions.py @@ -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)