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

Make polynomials depend on time #49

Merged
merged 6 commits into from
Jan 29, 2025

Conversation

Madddiiiin
Copy link
Contributor

@Madddiiiin Madddiiiin commented Jan 22, 2025

Summary

This PR changes the direct use of distances in polynomials.py to the use of times, calculated from the distances and the velocity relative to the speed of light.
It was curcial to change this, since the underlying formula is in respect to $t_i$, which is the time, instead of i, which would be the distance.


PR checklist

  • I have written tests that fail without my changes. Or I did not add them on purpose.
  • I have included instructions on how to test this, assuming they are not already apparent from the linked issue.

Closes/Fixes/Related to

Madddiiiin and others added 5 commits January 8, 2025 16:11
# Conflicts:
#	napytau/core/chi.py
#	napytau/core/core.py
#	napytau/core/delta_tau.py
#	napytau/core/polynomials.py
#	napytau/core/tau.py
#	tests/core/polynomials_test.py
@Madddiiiin Madddiiiin marked this pull request as ready for review January 22, 2025 13:01
@Benedikt-Brunner Benedikt-Brunner self-requested a review January 28, 2025 12:56
@Benedikt-Brunner Benedikt-Brunner self-assigned this Jan 28, 2025
Copy link
Collaborator

@Benedikt-Brunner Benedikt-Brunner left a comment

Choose a reason for hiding this comment

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

LGTM, just one naming thing for consistency

dataset.get_relative_velocity().value.get_velocity()
* sp.constants.speed_of_light
)
)


def evaluate_polynomial_at_measuring_distances(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Either we also adjust the function name or we don't adjust the comment

@Benedikt-Brunner Benedikt-Brunner self-requested a review January 29, 2025 12:42
@Benedikt-Brunner Benedikt-Brunner merged commit 1796da2 into main Jan 29, 2025
3 checks passed
@Benedikt-Brunner Benedikt-Brunner deleted the core/bug/make-polynomials-depend-on-time branch January 29, 2025 12:43
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.

Make polynomials depend on time instead of distance
2 participants