Skip to content

spe fit of white target - #408

Open
medha1996c wants to merge 1 commit into
cta-observatory:mainfrom
medha1996c:spe_fit_white_target
Open

medha1996c wants to merge 1 commit into
cta-observatory:mainfrom
medha1996c:spe_fit_white_target

Conversation

@medha1996c

@medha1996c medha1996c commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Code to calibrate gain with White target with inputs from @fbradascio
Final_gain_values_whole_camera_weight_likelihood_gain_cut

Each position of white target is separated by EventType.UNKNOWN.

  1. BlockIdentifierContainer : Identify the pixels illuminated : standard deviation of amplitude of waveform>3
  2. WhiteTargetTestTool: Fit the chosen pixels from BlockContainer with the charge container.
  3. GainContainer : Pixels get calibrated multiple times due to overlap in positions, finally an output h5 file is produced by computing a weighted average along with cuts to remove incorrect values of gain before computing the average. The weights are by default 1/error^2.

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.82%. Comparing base (7bdbab1) to head (675ee27).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #408      +/-   ##
==========================================
+ Coverage   47.54%   56.82%   +9.27%     
==========================================
  Files          92       96       +4     
  Lines        9487    10448     +961     
==========================================
+ Hits         4511     5937    +1426     
+ Misses       4976     4511     -465     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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.

1 participant