Skip to content

Commit

Permalink
HotFix: opencv import placement
Browse files Browse the repository at this point in the history
opencv should only be imported when used due to its complications in installation
  • Loading branch information
edeno committed Feb 3, 2024
1 parent e8ae471 commit b925dff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spyglass/position/v1/position_trodes_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
from pathlib import Path

import cv2
import datajoint as dj
import numpy as np
from datajoint.utils import to_camel_case
Expand Down Expand Up @@ -357,6 +356,8 @@ def make_video(
arrow_radius=15,
circle_radius=8,
):
import cv2

RGB_PINK = (234, 82, 111)
RGB_YELLOW = (253, 231, 76)
RGB_WHITE = (255, 255, 255)
Expand Down

0 comments on commit b925dff

Please sign in to comment.