Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of get_corrected_data #90

Merged
merged 2 commits into from
Sep 17, 2019
Merged

Conversation

jmp1985
Copy link

@jmp1985 jmp1985 commented Sep 16, 2019

A small change to improve performance of get_corrected_data.

If not external gain map is set then the gain map is populated from the detector panel gain value. This is not very efficient, especially if the gain is 1.0 and the pedestal is 0.0.

This pull request implements a change to get_gain and get_pedestal which means that if the detector panel gain is 1.0 then an empty array is returned from get_gain and is pedestal is 0.0 an empty array is returned from get_pedestal. This results in a large improvement in performance during integration.

@ndevenish ndevenish self-requested a review September 16, 2019 14:37
Copy link

@rjgildea rjgildea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you add a newsfragment for this change?

Copy link
Collaborator

@graeme-winter graeme-winter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me 🙂

@Anthchirp Anthchirp merged commit 9c9d6a2 into master Sep 17, 2019
@Anthchirp Anthchirp deleted the integrator_performance branch September 18, 2019 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants