From a55e5b71090a8124a40fa146a2cdf3c195aea6a6 Mon Sep 17 00:00:00 2001 From: Hiroki Yoneda Date: Tue, 22 Oct 2024 13:29:21 -0700 Subject: [PATCH] Modified SourceInjector corresponding to the change that Ei axis was removed --- cosipy/source_injector/source_injector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cosipy/source_injector/source_injector.py b/cosipy/source_injector/source_injector.py index b166369b..777c4b47 100644 --- a/cosipy/source_injector/source_injector.py +++ b/cosipy/source_injector/source_injector.py @@ -137,9 +137,8 @@ def inject_point_source(self, spectrum, coordinate, orientation = None, source_n injected = psr.get_expectation(spectrum) # setting the Em and Ei scale to linear to match the simulated data - # The linear scale of Em and Ei is the default for COSI data + # The linear scale of Em is the default for COSI data injected.axes["Em"].axis_scale = "linear" - injected.axes["Ei"].axis_scale = "linear" if project_axes is not None: injected = injected.project(project_axes)