Skip to content

Commit deedc43

Browse files
committed
Slight cleanup and refactor of sliderpack
1 parent cc29474 commit deedc43

2 files changed

Lines changed: 153 additions & 134 deletions

File tree

MDANSE_GUI/Src/MDANSE_GUI/Tabs/Plotters/Plotter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import copy
1919
import enum
20-
from typing import TYPE_CHECKING, Any
20+
from typing import TYPE_CHECKING, Any, Literal
2121

2222
import numpy as np
2323

@@ -87,6 +87,8 @@ def enum_to_str(operation: NormOperations) -> str:
8787
"operation": NormOperations.AVERAGE,
8888
}
8989

90+
ValidPlotters = Literal["Grid", "Heatmap", "Single"]
91+
9092

9193
class Plotter(metaclass=SubclassFactory):
9294
"""Parent class to all classes used for displaying data."""

0 commit comments

Comments
 (0)