Skip to content

Commit 6e40814

Browse files
committed
WIP-FIX change valuetype input for viz_setting
1 parent c01271f commit 6e40814

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/gh/components/DF_vizualization_settings/code.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
class VisualizationSettings(component):
2020
def RunScript(self,
21-
i_source_value_type,
22-
i_target_value_type,
21+
i_value_type,
2322
i_upper_threshold,
2423
i_lower_threshold,
2524
i_palette):
@@ -28,15 +27,14 @@ def RunScript(self,
2827
"""
2928

3029
# pack settings
31-
o_viz_settings = df_vizualization.DFVizSettings(i_source_value_type, i_target_value_type, i_upper_threshold, i_lower_threshold, i_palette)
30+
o_viz_settings = df_vizualization.DFVizSettings(i_value_type, i_upper_threshold, i_lower_threshold, i_palette)
3231

3332
return o_viz_settings
3433

3534
if __name__ == "__main__":
3635
com = VisualizationSettings()
3736
o_viz_settings = com.RunScript(
38-
i_source_value_type,
39-
i_target_value_type,
37+
i_value_type,
4038
i_upper_threshold,
4139
i_lower_threshold,
4240
i_palette

src/gh/diffCheck/diffCheck/df_vizualization.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ class DFVizSettings:
1212
This class compiles the settings for the vizualization into one object
1313
"""
1414

15-
def __init__(self, source_valueType, target_valueType, upper_threshold,
16-
lower_threshold, palette):
15+
def __init__(self, valueType, upper_threshold, lower_threshold, palette):
1716

18-
self.source_valueType = source_valueType
19-
self.target_valueType = target_valueType
17+
self.valueType = valueType
2018

2119
self.upper_threshold = upper_threshold
2220
self.lower_threshold = lower_threshold

0 commit comments

Comments
 (0)