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

A/E and calibration changes #514

Merged
merged 22 commits into from
Nov 2, 2023
Merged

A/E and calibration changes #514

merged 22 commits into from
Nov 2, 2023

Conversation

ggmarshall
Copy link
Collaborator

Rewrite of a/e code, better calibration fitting with bias on tail to remove degeneracies.
Improved all results dictionaries to specify function fitted where it is found and parameters/errors as dictionaries.

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Attention: 584 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/pygama/pargen/AoE_cal.py 0.00% <ø> (ø)
src/pygama/pargen/extract_tau.py 0.00% <0.00%> (ø)
src/pygama/math/peak_fitting.py 25.70% <0.00%> (-0.81%) ⬇️
src/pygama/pargen/energy_optimisation.py 6.42% <0.00%> (-0.02%) ⬇️
src/pygama/pargen/utils.py 12.12% <12.12%> (ø)
src/pygama/pargen/energy_cal.py 12.34% <6.28%> (-0.82%) ⬇️
src/pygama/pargen/ecal_th.py 0.00% <0.00%> (ø)

📢 Thoughts on this report? Let us know!.

@gipert
Copy link
Member

gipert commented Oct 1, 2023

Is this ready to merge? You could mark the PR as "draft" and set it to "ready to be merged" when you want us to review and merge.

Also please install the pre-commit hooks locally with pre-commit install. In general, we want to avoid having these pre-commit commits in the Git history. It would be nice if you could rewrite the current commit history by squashing the auto commits into the previous ones with git rebase -i.

@ggmarshall ggmarshall marked this pull request as draft October 2, 2023 12:31
@gipert gipert added the pargen Generation of analysis parameters (calibrations etc.) label Oct 3, 2023
…ior on tail to remove degeneracy, added check on guess so no guess params are none, bounded mu to be in fit range, improved validity checks
…rations, wrote resolution fitting to include both linear and quadratic fits, changed results output for clarity
… of results, split out plots into own functions
…ed get_pulser_ids to get_tcm_pulser_ids, added ability to return mask for load_data
@ggmarshall ggmarshall marked this pull request as ready for review November 2, 2023 14:39
@ggmarshall
Copy link
Collaborator Author

I think this is ready to be merged now, there are more changes I want to make but I'll save them for other prs

@ggmarshall
Copy link
Collaborator Author

I've also now changed the loading routines so we can use the tcm for pulser removal

@gipert
Copy link
Member

gipert commented Nov 2, 2023

I have just realized some pre-commit checks don't get ran because the pargen directory is excluded in .pre-commit-config.yaml. It would be good to remove those exceptions. Merging this now.

@gipert gipert merged commit 29cce25 into legend-exp:main Nov 2, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pargen Generation of analysis parameters (calibrations etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants