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

Quadfit #22

Merged
merged 5 commits into from
Feb 15, 2022
Merged

Quadfit #22

merged 5 commits into from
Feb 15, 2022

Conversation

palumbom
Copy link
Collaborator

@palumbom palumbom commented Feb 15, 2022

There are two things included in this pull request:

@palumbom palumbom requested a review from eford February 15, 2022 16:46
@codecov-commenter
Copy link

Codecov Report

Merging #22 (97f5289) into main (8817825) will increase coverage by 0.75%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   31.11%   31.87%   +0.75%     
==========================================
  Files          32       32              
  Lines        1324     1324              
==========================================
+ Hits          412      422      +10     
+ Misses        912      902      -10     
Impacted Files Coverage Δ
src/calc_rv/fit_quadratic_to_ccf.jl 100.00% <100.00%> (ø)
src/ccf/calc_ccf.jl 66.14% <0.00%> (+5.20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8817825...97f5289. Read the comment docs.

@testset "RV injection/extraction" begin
# velocities
amp = 1.0 # meters per second
vel = amp .* sin.(range(0, 2π, length=100))
Copy link
Member

Choose a reason for hiding this comment

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

Could just test for [-\pi/2,\pi/2) and cut length in half.

rvs_quad = zeros(length(vel))
sig_quad = zeros(length(vel))
for i in eachindex(vel)
rvs_gauss[i], sig_gauss[i] = mrv_gauss(v_grid, view(ccf, :, i))
Copy link
Member

Choose a reason for hiding this comment

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

Could add test that calls version of functions that also take uncertainties in fluxes.

Copy link
Member

@eford eford left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@palumbom palumbom merged commit 77761e0 into main Feb 15, 2022
@palumbom palumbom deleted the quadfit branch February 15, 2022 20:29
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.

3 participants