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

Tests for stages in DFP Production Example #940

Merged

Conversation

dagardner-nv
Copy link
Contributor

@dagardner-nv dagardner-nv commented May 5, 2023

Description

  • Adds a test for each of the stages in the DFP production example (tests for modules coming in separate PR).
  • Add/fix type-hints to existing stages where missing
  • Fix type-o in DFPFileToDataFrameStage. The type-hint and documentation specifies valid values for MORPHEUS_FILE_DOWNLOAD_TYPE as ["single_thread", "multiprocess", "dask", "dask_thread"] however in practice "multiprocessing" is the value used. Updated to accept either value.
  • Remove unused method _trim_dataframe from DFPRollingWindowStage this logic appears to have been moved to CachedUserWindow.trim_dataframe
  • Fix accepted types for DFPVizPostprocStage
  • Move nested write_to_files method in DFPVizPostprocStage to an instance method allowing it to be tested.
  • Fix format detection logic in read_file_to_df when FileTypes=Auto and an instance of an fsspec opener was passed in instead of the expected file path.
  • Consolidate duplicated DataFrame downloading code
  • Fix bug in PreallocatorMixin when the incoming datatype is a DataFrame and not a message

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

dagardner-nv and others added 30 commits April 13, 2023 14:12
…eviously these were in LFS in stored under models/training-tuning-scripts/sid-models/resources/
…lines since examples/data is quite large and not fetched in CI
…nts dir, and replace it with a symlink for compatibility
…a deps needed for examples to the test target
@dagardner-nv dagardner-nv added 3 - Ready for Review and removed 2 - In Progress Merge After Dependencies PR is completed and reviewed but depends on another PR; do not merge out of order labels May 17, 2023
Copy link
Contributor

@mdemoret-nv mdemoret-nv left a comment

Choose a reason for hiding this comment

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

Merge when comments are addressed

morpheus/pipeline/preallocator_mixin.py Outdated Show resolved Hide resolved
morpheus/utils/downloader.py Outdated Show resolved Hide resolved
tests/examples/digital_fingerprinting/conftest.py Outdated Show resolved Hide resolved
@dagardner-nv
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit c703615 into nv-morpheus:branch-23.07 May 18, 2023
@dagardner-nv dagardner-nv deleted the david-test-dfp-examples branch May 18, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement to existing functionality non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants