-
Notifications
You must be signed in to change notification settings - Fork 38
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure that your imports follow the styling convention: https://uwarg-docs.atlassian.net/wiki/spaces/CV/pages/2253226033/Python+Style+Convention
args=( | ||
3, | ||
0, | ||
3, | ||
0, |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
…G/computer-vision-python into cluster-estimation-integration-test
No description provided.