Skip to content

Commit

Permalink
fixed bug in FullDetectorResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
ckarwin committed Jan 9, 2025
1 parent e9bf11e commit 7e392d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cosipy/response/FullDetectorResponse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7e392d0

Please sign in to comment.