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

renamed variables in lq_cut, changed expression handling #107

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DaGeibl
Copy link
Contributor

@DaGeibl DaGeibl commented Dec 13, 2024

Some changes for the lq_cut

  • renamed some variables in lq_cut, and renamed the drift time correction to function lq_ctc_correction
  • lq_cut now requires lq_e_corr_expression and dt_eff_expression to construct prop func
  • added the option to use higher order corrections for the ctc fit
  • usecut_single_peak insted of own pre-cutting method
  • adjusted recipe to changes

@theHenks theHenks added bug Something isn't working enhancement New feature or request labels Dec 13, 2024
@theHenks theHenks linked an issue Dec 13, 2024 that may be closed by this pull request
@theHenks
Copy link
Collaborator

All tests are failing. I think you need to rename things in there too

Copy link
Collaborator

@theHenks theHenks left a comment

Choose a reason for hiding this comment

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

I have mainly some comments about the uncertainty handling, the returns and some of the naming.

ext/LegendSpecFitsRecipesBaseExt.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
ext/LegendSpecFitsRecipesBaseExt.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 21.32353% with 107 lines in your changes missing coverage. Please review.

Project coverage is 20.80%. Comparing base (7ff7aac) to head (ab6abbd).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
ext/LegendSpecFitsRecipesBaseExt.jl 0.00% 97 Missing ⚠️
src/lqcut.jl 74.35% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #107      +/-   ##
==========================================
- Coverage   21.33%   20.80%   -0.53%     
==========================================
  Files          36       36              
  Lines        3305     3384      +79     
==========================================
- Hits          705      704       -1     
- Misses       2600     2680      +80     

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

Copy link
Collaborator

@theHenks theHenks left a comment

Choose a reason for hiding this comment

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

The results still need a fix.

@@ -1275,7 +1275,7 @@ end

# recipe for the lq_drift_time_correction report

@recipe function f(report::NamedTuple{(:lq_prehist, :lq_report, :drift_prehist, :drift_report, :lq_box, :drift_time_func, :DEP_left, :DEP_right)}, e_cal, dt_eff, lq_e_corr, plot_type::Symbol)
@recipe function f(report::NamedTuple{(:lq_report, :drift_report, :lq_box, :drift_time_func, :DEP_left, :DEP_right)}, e_cal, dt_eff, lq_e_corr, plot_type::Symbol)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the plot_type doing? Can this be a kwarg?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

plot_type specifies which one the different plots should be plottet.
Should i implement this by picking one them as a default plot?

src/lqcut.jl Outdated Show resolved Hide resolved
src/lqcut.jl Show resolved Hide resolved
src/lqcut.jl Outdated Show resolved Hide resolved
src/singlefit.jl Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug Fix LQ cut
3 participants