We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed95860 + 4bb188d commit e8948d3Copy full SHA for e8948d3
time_in_each_roi.py
@@ -2,6 +2,7 @@
2
from collections import namedtuple
3
from scipy.spatial import distance
4
import pandas as pd
5
+import warnings
6
7
"""
8
Functions to extract time spent by the mouse in each of a list of user defined ROIS
@@ -138,7 +139,7 @@ def sort_roi_points(roi):
138
139
cleaned_rois.append(roi)
140
return cleaned_rois
141
else:
- print("Warning: you've set check_inroi=False, so data reflect which ROI is closest even if tracked point is not in any given ROI.")
142
+ warnings.warn("Warning: you've set check_inroi=False, so data reflect which ROI is closest even if tracked point is not in any given ROI.")
143
return roi_at_each_frame
144
145
0 commit comments