Skip to content

Commit 1070142

Browse files
committed
Unify plugin name for plugins with online/offline variants
1 parent d0a5613 commit 1070142

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

pupil_src/shared_modules/blink_detection.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class Blink_Detection(Analysis_Plugin_Base):
4747
icon_chr = chr(0xE81A)
4848
icon_font = "pupil_icons"
4949

50+
@classmethod
51+
def parse_pretty_class_name(cls) -> str:
52+
return "Blink Detector"
53+
5054
def __init__(
5155
self,
5256
g_pool,

pupil_src/shared_modules/eye_movement/eye_movement_detector_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@
1414
class Eye_Movement_Detector_Base(Analysis_Plugin_Base):
1515
icon_chr = chr(0xEC03)
1616
icon_font = "pupil_icons"
17+
@classmethod
18+
19+
def parse_pretty_class_name(cls) -> str:
20+
return "Eye Movement Detector"

pupil_src/shared_modules/fixation_detector.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class Fixation_Detector_Base(Analysis_Plugin_Base):
5353
icon_chr = chr(0xEC03)
5454
icon_font = "pupil_icons"
5555

56+
@classmethod
57+
def parse_pretty_class_name(cls) -> str:
58+
return "Fixation Detector"
59+
5660

5761
def fixation_from_data(dispersion, method, base_data, timestamps=None):
5862
norm_pos = np.mean([gp["norm_pos"] for gp in base_data], axis=0).tolist()

pupil_src/shared_modules/surface_tracker/surface_tracker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ class Surface_Tracker(Plugin, metaclass=ABCMeta):
3838
icon_chr = chr(0xEC07)
3939
icon_font = "pupil_icons"
4040

41+
@classmethod
42+
def parse_pretty_class_name(cls) -> str:
43+
return "Surface Tracker"
44+
4145
def __init__(
4246
self,
4347
g_pool,

0 commit comments

Comments
 (0)