From 4263887ff8f091a169747422cba57242810b0cac Mon Sep 17 00:00:00 2001 From: Abdu Zoghbi <32649422+zoghbi-a@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:09:32 -0400 Subject: [PATCH] Update multiband_photometry.md This fixes the `SettingWithCopyWarning` warning. See #314 --- forced_photometry/multiband_photometry.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forced_photometry/multiband_photometry.md b/forced_photometry/multiband_photometry.md index 21521aee..c9bf2e32 100644 --- a/forced_photometry/multiband_photometry.md +++ b/forced_photometry/multiband_photometry.md @@ -851,7 +851,7 @@ print('number of Galex detections =',np.sum(merged.galex_detect > 0)) #overplot xray sources #first select on 24 micron -merged_24 = merged[(merged.flux_24 >= 0) ] +merged_24 = merged[(merged.flux_24 >= 0)].copy() #negative Galex fluxes are causing problems, so set those to zero merged_24.loc[merged_24.fuvflux < 0, 'fuvflux'] = 0