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

improve docstrings in Autoupload enum #243

Merged
merged 5 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: install dependencies
run: |
poetry install --with dev
sudo apt-get update && sudo apt-get install -y v4l-utils psmisc libgl1-mesa-glx
sudo apt-get update && sudo apt-get install -y v4l-utils psmisc
- name: test
run: poetry run pytest
- name: examples
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.12-bookworm

RUN apt update && apt install -y \
sudo vim less ack-grep rsync wget curl cmake arp-scan iproute2 iw python3-pip python3-autopep8 libgeos-dev graphviz graphviz-dev v4l-utils psmisc sysstat \
libgl1-mesa-glx ffmpeg libsm6 libxext6 \
libgl1 libglx-mesa0 ffmpeg libsm6 libxext6 \
avahi-utils iputils-ping \
jq \
&& rm -rf /var/lib/apt/lists/*
Expand Down
8 changes: 4 additions & 4 deletions rosys/vision/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@


class Autoupload(Enum):
"""Configures the auto-submitting of images to the Learning Loop"""
"""Configuration options for image auto-upload behavior to the Learning Loop"""

FILTERED = 'filtered'
"""only submit images with novel detections and in an uncertainty range (this is the default)"""
"""Upload mode for images with novel detections within uncertainty thresholds (default)"""

DISABLED = 'disabled'
"""no auto-submitting"""
"""Upload mode where no images are auto-uploaded"""

ALL = 'all'
"""submit all images which are run through the detector"""
"""Upload mode where every processed image is uploaded"""


class DetectorException(Exception):
Expand Down
Loading