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

Fix rounding errors for code generation #34

Merged
merged 2 commits into from
Dec 9, 2021

Conversation

zsoerenm
Copy link
Member

@zsoerenm zsoerenm commented Dec 6, 2021

@@ -25,12 +25,13 @@ function gen_code_replica!(
most_late_sample_shift = correlator_sample_shifts[1]
total_samples = num_samples + most_early_sample_shift - most_late_sample_shift
Copy link
Contributor

Choose a reason for hiding this comment

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

Commenting only on variable naming: wouldn't it be better to name the variables latest_sample_shiftand earliest_sample_shift?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, this would lead to shorter variable names, but is probably out of scope here, what do you think @zsoerenm?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I support this change. Would you mind to create a pull request @ozmaden ?

@zsoerenm zsoerenm merged commit 076eb83 into master Dec 9, 2021
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