From 7e392d07a2f74f99e7be3adef7df58c908ecd296 Mon Sep 17 00:00:00 2001 From: "Christopher M. Karwin" Date: Thu, 9 Jan 2025 15:12:38 -0500 Subject: [PATCH] fixed bug in FullDetectorResponse --- cosipy/response/FullDetectorResponse.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cosipy/response/FullDetectorResponse.py b/cosipy/response/FullDetectorResponse.py index 3ec7f756..6673e243 100644 --- a/cosipy/response/FullDetectorResponse.py +++ b/cosipy/response/FullDetectorResponse.py @@ -257,7 +257,7 @@ def _open_rsp(cls, filename, Spectrumfile=None,norm="Linear" ,single_pixel = Fal labels = ("Ei", "NuLambda", "Pol", "Em", "Phi", "PsiChi", "SigmaTau", "Dist") elif np.array_equal(axes_names, ['"Initial energy [keV]"', '"#nu [deg]" "#lambda [deg]"', '"Measured energy [keV]"', '"#phi [deg]"', '"#psi [deg]" "#chi [deg]"', '"#sigma [deg]" "#tau [deg]"', '"Distance [cm]"']): has_polarization = False - labels = ("Ei", "NuLambda", "Pol", "Em", "Phi", "PsiChi", "SigmaTau", "Dist") + labels = ("Ei", "NuLambda", "Em", "Phi", "PsiChi", "SigmaTau", "Dist") else: raise InputError("Unknown response format") @@ -290,8 +290,6 @@ def _open_rsp(cls, filename, Spectrumfile=None,norm="Linear" ,single_pixel = Fal raise RuntimeError("FISBEL binning not currently supported") else: edges += (axis_edges,) - - #print(edges) if sparse : axes = Axes(edges, labels=labels)