Skip to content

Commit ddf2169

Browse files
authored
Merge pull request #113 from Eomys/GUI
[CO] Moving the GUI to a new package
2 parents 8bce6f0 + 73e3e64 commit ddf2169

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+32
-9191
lines changed

SciDataTool/Classes/DataND.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@
135135
except ImportError as error:
136136
orthogonal_mp = error
137137

138-
try:
139-
from ..Methods.DataND.plot import plot
140-
except ImportError as error:
141-
plot = error
142-
143138
try:
144139
from ..Methods.DataND.plot_2D_Data import plot_2D_Data
145140
except ImportError as error:
@@ -428,15 +423,6 @@ class DataND(Data):
428423
)
429424
else:
430425
orthogonal_mp = orthogonal_mp
431-
# cf Methods.DataND.plot
432-
if isinstance(plot, ImportError):
433-
plot = property(
434-
fget=lambda x: raise_(
435-
ImportError("Can't use DataND method plot: " + str(plot))
436-
)
437-
)
438-
else:
439-
plot = plot
440426
# cf Methods.DataND.plot_2D_Data
441427
if isinstance(plot_2D_Data, ImportError):
442428
plot_2D_Data = property(

SciDataTool/Classes/VectorField.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@
7575
except ImportError as error:
7676
get_vectorfield_along = error
7777

78-
try:
79-
from ..Methods.VectorField.plot import plot
80-
except ImportError as error:
81-
plot = error
82-
8378
try:
8479
from ..Methods.VectorField.plot_2D_Data import plot_2D_Data
8580
except ImportError as error:
@@ -260,15 +255,6 @@ class VectorField(FrozenClass):
260255
)
261256
else:
262257
get_vectorfield_along = get_vectorfield_along
263-
# cf Methods.VectorField.plot
264-
if isinstance(plot, ImportError):
265-
plot = property(
266-
fget=lambda x: raise_(
267-
ImportError("Can't use VectorField method plot: " + str(plot))
268-
)
269-
)
270-
else:
271-
plot = plot
272258
# cf Methods.VectorField.plot_2D_Data
273259
if isinstance(plot_2D_Data, ImportError):
274260
plot_2D_Data = property(

SciDataTool/Functions/Plot/__init__.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,31 @@
126126
MAIN_LINE_COLOR = "0.5" # Gray
127127
MAIN_LINE_STYLE = "dotted"
128128
MAIN_LINE_WIDTH = 1
129+
130+
REV_COMP_DICT = {
131+
"radial": "radial",
132+
"tangential": "circumferential",
133+
"axial": "axial",
134+
"comp_x": "x-axis component",
135+
"comp_y": "y-axis component",
136+
"comp_z": "z-axis component",
137+
}
138+
139+
PARAM_3D = [
140+
"is_2D_view",
141+
"is_contour",
142+
"is_same_size",
143+
"N_stem",
144+
"colormap",
145+
"annotation_delim",
146+
"marker_color",
147+
"z_range",
148+
]
149+
150+
PARAM_2D = [
151+
"color_list",
152+
"data_list",
153+
"legend_list",
154+
"fund_harm_dict",
155+
"is_show_legend",
156+
]

0 commit comments

Comments
 (0)