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

Add backwards compatible velocity error #25

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

Benedikt-Brunner
Copy link
Collaborator

@Benedikt-Brunner Benedikt-Brunner commented Dec 8, 2024

Summary

This adds a velocity error value to the data model, it also implements reading this value from the napatau data format. This is done in a backwards compatible fashion, so as to not break compatibility with previously generated files.


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

How to Test

  • Currently we will have to trust the CI
  • If Add Import demo #22 is merged before the test of this, you can used the headless mode to read a file containing a velocity error value.

Copy link
Contributor

@Madddiiiin Madddiiiin left a comment

Choose a reason for hiding this comment

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

Good job.


velocity = float(split_velocity_row[0])
velocity_error = (
float(split_velocity_row[1]) if len(split_velocity_row) == 2 else 0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Good work for the backwards compatibility.

@Madddiiiin Madddiiiin merged commit 3eb6fe7 into main Dec 10, 2024
3 checks passed
@Madddiiiin Madddiiiin deleted the import/user-story/add-velocity-error branch December 10, 2024 14:25
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.

Add velocity error
2 participants