steer-core 0.1.11__tar.gz → 0.1.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {steer_core-0.1.11 → steer_core-0.1.12}/PKG-INFO +1 -1
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Components/SliderComponents.py +29 -29
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Data/database.db +0 -0
- steer_core-0.1.12/steer_core/__init__.py +1 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core.egg-info/PKG-INFO +1 -1
- steer_core-0.1.11/steer_core/__init__.py +0 -1
- {steer_core-0.1.11 → steer_core-0.1.12}/README.md +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/setup.cfg +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/setup.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Components/MaterialSelectors.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Components/RangeSliderComponents.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Components/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/ContextManagers.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Performance/CallbackTimer.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Performance/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Utils/SliderControls.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/Utils/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Apps/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Constants/Units.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Constants/Universal.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Constants/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/ContextManagers/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Data/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/DataManager.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Decorators/Coordinates.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Decorators/Electrochemical.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Decorators/General.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Decorators/Objects.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Decorators/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Mixins/Colors.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Mixins/Coordinates.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Mixins/Data.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Mixins/Serializer.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Mixins/__init__.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core/Mixins/validators.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core.egg-info/SOURCES.txt +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core.egg-info/dependency_links.txt +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core.egg-info/requires.txt +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/steer_core.egg-info/top_level.txt +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/test/test_compound_components.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/test/test_compound_components_clean.py +0 -0
- {steer_core-0.1.11 → steer_core-0.1.12}/test/test_slider_controls.py +0 -0
@@ -36,12 +36,12 @@ class SliderWithTextInput:
|
|
36
36
|
Example:
|
37
37
|
>>> slider_component = SliderWithTextInput(
|
38
38
|
... id_base={'type': 'parameter', 'index': 0},
|
39
|
+
... property_name='temperature',
|
40
|
+
... title='Temperature (°C)',
|
39
41
|
... min_val=0.0,
|
40
42
|
... max_val=100.0,
|
41
43
|
... step=1.0,
|
42
|
-
... mark_interval=
|
43
|
-
... property_name='temperature',
|
44
|
-
... title='Temperature (°C)',
|
44
|
+
... mark_interval=50.0,
|
45
45
|
... default_val=25.0,
|
46
46
|
... message='Optimal range is 20-30°C' # Optional message
|
47
47
|
... )
|
@@ -51,12 +51,12 @@ class SliderWithTextInput:
|
|
51
51
|
def __init__(
|
52
52
|
self,
|
53
53
|
id_base: dict,
|
54
|
-
min_val: float,
|
55
|
-
max_val: float,
|
56
|
-
step: float,
|
57
|
-
mark_interval: float,
|
58
54
|
property_name: str,
|
59
55
|
title: str,
|
56
|
+
min_val: float = 0.0,
|
57
|
+
max_val: float = 100.0,
|
58
|
+
step: float = 1.0,
|
59
|
+
mark_interval: float = 50.0,
|
60
60
|
default_val: Union[float, list[float]] = None,
|
61
61
|
with_slider_titles: bool = True,
|
62
62
|
slider_disable: bool = False,
|
@@ -71,17 +71,17 @@ class SliderWithTextInput:
|
|
71
71
|
id_base (dict): Base dictionary for generating component IDs. Should contain
|
72
72
|
identifying information that will be extended with component-specific
|
73
73
|
subtypes and properties.
|
74
|
-
min_val (float): Minimum value that can be selected on the slider or entered
|
75
|
-
in the text input.
|
76
|
-
max_val (float): Maximum value that can be selected on the slider or entered
|
77
|
-
in the text input.
|
78
|
-
step (float): The granularity of value changes. Determines the smallest
|
79
|
-
increment/decrement possible.
|
80
|
-
mark_interval (float): The spacing between tick marks displayed on the slider.
|
81
|
-
Should be a multiple of step for best visual alignment.
|
82
74
|
property_name (str): A string identifier for this specific property, used
|
83
75
|
in ID generation and callbacks.
|
84
76
|
title (str): Human-readable title displayed above the component.
|
77
|
+
min_val (float, optional): Minimum value that can be selected on the slider or entered
|
78
|
+
in the text input. Defaults to 0.0.
|
79
|
+
max_val (float, optional): Maximum value that can be selected on the slider or entered
|
80
|
+
in the text input. Defaults to 100.0.
|
81
|
+
step (float, optional): The granularity of value changes. Determines the smallest
|
82
|
+
increment/decrement possible. Defaults to 1.0.
|
83
|
+
mark_interval (float, optional): The spacing between tick marks displayed on the slider.
|
84
|
+
Should be a multiple of step for best visual alignment. Defaults to 50.0.
|
85
85
|
default_val (Union[float, list[float]], optional): Initial value to display.
|
86
86
|
If None, defaults to min_val. Can be a single float or list
|
87
87
|
for compatibility with range sliders.
|
@@ -439,14 +439,14 @@ class SliderWithTextInputAndCheckbox(SliderWithTextInput):
|
|
439
439
|
Example:
|
440
440
|
>>> slider_component = SliderWithTextInputAndCheckbox(
|
441
441
|
... id_base={'type': 'parameter', 'index': 0},
|
442
|
+
... property_name='temperature',
|
443
|
+
... title='Temperature (°C)',
|
444
|
+
... checkbox_message='Use automatic temperature control',
|
442
445
|
... min_val=0.0,
|
443
446
|
... max_val=100.0,
|
444
447
|
... step=1.0,
|
445
|
-
... mark_interval=
|
446
|
-
... property_name='temperature',
|
447
|
-
... title='Temperature (°C)',
|
448
|
+
... mark_interval=50.0,
|
448
449
|
... default_val=25.0,
|
449
|
-
... checkbox_message='Use automatic temperature control',
|
450
450
|
... checkbox_default=True
|
451
451
|
... )
|
452
452
|
>>> layout_element = slider_component() # Returns Dash HTML Div component
|
@@ -455,13 +455,13 @@ class SliderWithTextInputAndCheckbox(SliderWithTextInput):
|
|
455
455
|
def __init__(
|
456
456
|
self,
|
457
457
|
id_base: dict,
|
458
|
-
min_val: float,
|
459
|
-
max_val: float,
|
460
|
-
step: float,
|
461
|
-
mark_interval: float,
|
462
458
|
property_name: str,
|
463
459
|
title: str,
|
464
460
|
checkbox_message: str,
|
461
|
+
min_val: float = 0.0,
|
462
|
+
max_val: float = 100.0,
|
463
|
+
step: float = 1.0,
|
464
|
+
mark_interval: float = 50.0,
|
465
465
|
default_val: Union[float, list[float]] = None,
|
466
466
|
checkbox_default: bool = False,
|
467
467
|
with_slider_titles: bool = True,
|
@@ -474,13 +474,13 @@ class SliderWithTextInputAndCheckbox(SliderWithTextInput):
|
|
474
474
|
|
475
475
|
Args:
|
476
476
|
id_base (dict): Base dictionary for generating component IDs.
|
477
|
-
min_val (float): Minimum value for the slider and input.
|
478
|
-
max_val (float): Maximum value for the slider and input.
|
479
|
-
step (float): Step size for value increments/decrements.
|
480
|
-
mark_interval (float): Interval between tick marks on the slider.
|
481
477
|
property_name (str): String identifier for this property.
|
482
478
|
title (str): Title displayed above the component.
|
483
479
|
checkbox_message (str): Message displayed next to the checkbox.
|
480
|
+
min_val (float, optional): Minimum value for the slider and input. Defaults to 0.0.
|
481
|
+
max_val (float, optional): Maximum value for the slider and input. Defaults to 100.0.
|
482
|
+
step (float, optional): Step size for value increments/decrements. Defaults to 1.0.
|
483
|
+
mark_interval (float, optional): Interval between tick marks on the slider. Defaults to 50.0.
|
484
484
|
default_val (Union[float, list[float]], optional): Initial value for slider/input.
|
485
485
|
checkbox_default (bool, optional): Initial checked state of checkbox. Defaults to False.
|
486
486
|
with_slider_titles (bool, optional): Whether to show title. Defaults to True.
|
@@ -491,12 +491,12 @@ class SliderWithTextInputAndCheckbox(SliderWithTextInput):
|
|
491
491
|
# Initialize parent class
|
492
492
|
super().__init__(
|
493
493
|
id_base=id_base,
|
494
|
+
property_name=property_name,
|
495
|
+
title=title,
|
494
496
|
min_val=min_val,
|
495
497
|
max_val=max_val,
|
496
498
|
step=step,
|
497
499
|
mark_interval=mark_interval,
|
498
|
-
property_name=property_name,
|
499
|
-
title=title,
|
500
500
|
default_val=default_val,
|
501
501
|
with_slider_titles=with_slider_titles,
|
502
502
|
slider_disable=slider_disable,
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.1.12"
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.1.11"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|