Skip to content

Commit

Permalink
refactor: warn about future transfer of this class to crappy.collection
Browse files Browse the repository at this point in the history
  • Loading branch information
WeisLeDocto committed Apr 16, 2024
1 parent 7e91253 commit bd0f96b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/crappy/camera/gphoto2_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from time import time
from typing import Optional, Tuple, Dict, Any
import logging
from warnings import warn

from .meta_camera import Camera
from .._global import OptionalModule
Expand Down Expand Up @@ -43,6 +44,11 @@ class CameraGPhoto2(Camera):
def __init__(self) -> None:
"""Instantiates the available settings."""

warn(f"Starting from version 2.1.0, {type(self).__name__} will be moved "
f"to crappy.collection. Your code that uses it will still work as "
f"is, except you will now need to import crappy.collection at the "
f"top of your script.", FutureWarning)

super().__init__()

# Attributes used for image acquisition
Expand Down

0 comments on commit bd0f96b

Please sign in to comment.