Skip to content

Fix test_process_features float conversion - #2314

Open
KyleFromNVIDIA wants to merge 1 commit into
nv-morpheus:branch-25.10from
KyleFromNVIDIA:fix-preprocessing-test
Open

Fix test_process_features float conversion#2314
KyleFromNVIDIA wants to merge 1 commit into
nv-morpheus:branch-25.10from
KyleFromNVIDIA:fix-preprocessing-test

Conversation

@KyleFromNVIDIA

Copy link
Copy Markdown

Description

The conversion from float to string lost the behavior of tolerating small deltas due to floating point arithmetic error. Convert back to a float before comparison in order to get the tolerance back.

By Submitting this PR I confirm:

  • I am familiar with the Contributing Guidelines.
  • When the PR is ready for review, new or existing tests cover these changes.
  • When the PR is ready for review, the documentation is up to date with these changes.

The conversion from float to string lost the behavior of tolerating
small deltas due to floating point arithmetic error. Convert back
to a float before comparison in order to get the tolerance back.
@copy-pr-bot

copy-pr-bot Bot commented Sep 26, 2025

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@morpheus-bot-test morpheus-bot-test Bot moved this to Review - Ready for Review in Morpheus Boards Sep 26, 2025
@KyleFromNVIDIA

Copy link
Copy Markdown
Author

/ok to test be72ad0

@dagardner-nv dagardner-nv self-assigned this Sep 29, 2025
@dagardner-nv dagardner-nv added bug Something isn't working non-breaking Non-breaking change labels Sep 29, 2025
@dagardner-nv

Copy link
Copy Markdown
Contributor

/ok to test be72ad0

KyleFromNVIDIA added a commit to KyleFromNVIDIA/Morpheus that referenced this pull request Sep 29, 2025
The conversion from float to string lost the behavior of tolerating
small deltas due to floating point arithmetic error. Convert back
to a float before comparison in order to get the tolerance back.

Backports nv-morpheus#2314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change

Projects

Status: Review - Ready for Review

Development

Successfully merging this pull request may close these issues.

2 participants