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

Cluster estimation integration test #251

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

RohanKatreddy
Copy link

No description provided.

@RohanKatreddy RohanKatreddy self-assigned this Feb 7, 2025
Copy link
Contributor

@HermanG05 HermanG05 left a comment

Choose a reason for hiding this comment

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

Reviewed

Comment on lines 5 to 11
import time
import multiprocessing as mp
from typing import List
import numpy as np
from utilities.workers import queue_proxy_wrapper, worker_controller
from modules.detection_in_world import DetectionInWorld
from modules.cluster_estimation.cluster_estimation_worker import cluster_estimation_worker
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines 28 to 32
args=(
3,
0,
3,
0,
Copy link
Contributor

Choose a reason for hiding this comment

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

Try to store numerical constants like these at the top (ie RANDOM_STATE = 0, see other integration tests as an example).

worker_process.start()
time.sleep(1)

output_results: List[List[DetectionInWorld]] = output_queue.queue.get()
Copy link
Contributor

Choose a reason for hiding this comment

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

We want to check to see if the output result is a list of ObjectInWorld, otherwise the worker wouldnt be doing anything

input_queue.queue.put(test_data_2)
time.sleep(1)

output_results: List[List[DetectionInWorld]] = output_queue.queue.get()
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

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.

2 participants