steer-core 0.1.11__py3-none-any.whl → 0.1.12__py3-none-any.whl

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.
@@ -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=10.0,
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=10.0,
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
steer_core/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.11"
1
+ __version__ = "0.1.12"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: steer-core
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: Modelling energy storage from cell to site - STEER OpenCell Design
5
5
  Home-page: https://github.com/nicholas9182/steer-core/
6
6
  Author: Nicholas Siemons
@@ -1,10 +1,10 @@
1
1
  steer_core/DataManager.py,sha256=KKpN8GiVHm8xfUmjHKgfLt_xRXT--dhNX8gxs022VHs,11156
2
- steer_core/__init__.py,sha256=nllDrH0jyChMuuYrK0CC55iTBKUNTUjejtcwxyUF2EQ,23
2
+ steer_core/__init__.py,sha256=LcIlFjHZFfiF9Rd4UHoakmombOFkxIYk00I181frGBM,23
3
3
  steer_core/Apps/ContextManagers.py,sha256=p3_m6cio2bobP0gg03Iu18XRPHTeIsoZasf5TnLsvZg,1810
4
4
  steer_core/Apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  steer_core/Apps/Components/MaterialSelectors.py,sha256=KVDhOK5c0LT-2z9_o_QYdk6wsDjPEZ0Wb4xHXOjZvNc,31715
6
6
  steer_core/Apps/Components/RangeSliderComponents.py,sha256=At-xmyIS9GEAO7MzWXc4vwwzY-zqwNKdGHYkXSUIDck,21732
7
- steer_core/Apps/Components/SliderComponents.py,sha256=Vo1pXhWwjxaRF_q2jUDJD2M5OgFsfQW7oFlrceVMDc0,27404
7
+ steer_core/Apps/Components/SliderComponents.py,sha256=SQRt8LQxNHCeif70CF4cgx-Cvwx_poUSweu86qYJBlA,27680
8
8
  steer_core/Apps/Components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  steer_core/Apps/Performance/CallbackTimer.py,sha256=wFbW2_nl6KdEKrtdviOh5y66ZQlbVf0ZDHm-SZBjbYg,390
10
10
  steer_core/Apps/Performance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -15,7 +15,7 @@ steer_core/Constants/Universal.py,sha256=5FWdrex5NiI2DResDmwO7GIvGN2B0DNtdlG1l-y
15
15
  steer_core/Constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  steer_core/ContextManagers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  steer_core/Data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- steer_core/Data/database.db,sha256=R2r_jtXnP_ywNScbGuZgMdlmHxcMZto19Ap0eSCY8n0,13615104
18
+ steer_core/Data/database.db,sha256=IWiVyk8K0uTqGeZc8yvr6kT39Jx-YneyKEe7MNYqOBU,13615104
19
19
  steer_core/Decorators/Coordinates.py,sha256=qo79PlA8ZZ6QY-VvH9YGg27gqpVJ2-Xa3blyoQVCp7A,1436
20
20
  steer_core/Decorators/Electrochemical.py,sha256=fAy89aw3zspBu_8UPa5kEhUpvO-bYpM0xH1r6O6mSiA,985
21
21
  steer_core/Decorators/General.py,sha256=-Wu-kTC9JAokicgt_nvANR7zpbCBPNR1kDmY6jzHfy4,966
@@ -27,7 +27,7 @@ steer_core/Mixins/Data.py,sha256=wdNedZHS5Q7B-pCIoEbqTWMcxsC91CVn9pbQ2Zszg3w,136
27
27
  steer_core/Mixins/Serializer.py,sha256=x-aX8BcFSh5egZdkKinYMmIHLqZymCnETNUld3hzgnk,1039
28
28
  steer_core/Mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  steer_core/Mixins/validators.py,sha256=3GwRJeC30JNpRYavkirdMsGlZxPrGVxe4cX0wxj8dG8,7449
30
- steer_core-0.1.11.dist-info/METADATA,sha256=HKNtfkr6KVQlibYFgDNfIFc0CldmTf-j8-2kUvruXzk,704
31
- steer_core-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
- steer_core-0.1.11.dist-info/top_level.txt,sha256=6LFpGCSDE_SqRoT7raeM3Ax7KTBKQnyXLXxM9kXtw5M,11
33
- steer_core-0.1.11.dist-info/RECORD,,
30
+ steer_core-0.1.12.dist-info/METADATA,sha256=IVsM6pM9Egt65iofe3vwZBV2yNYBUPsQURPqKaPgGZ4,704
31
+ steer_core-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
+ steer_core-0.1.12.dist-info/top_level.txt,sha256=6LFpGCSDE_SqRoT7raeM3Ax7KTBKQnyXLXxM9kXtw5M,11
33
+ steer_core-0.1.12.dist-info/RECORD,,