Skip to content

Commit

Permalink
Modified SourceInjector corresponding to the change that Ei axis was …
Browse files Browse the repository at this point in the history
…removed
  • Loading branch information
hiyoneda committed Oct 22, 2024
1 parent 1158ff2 commit a55e5b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cosipy/source_injector/source_injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a55e5b7

Please sign in to comment.