steer-core 0.1.26__py3-none-any.whl → 0.1.28__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.
- steer_core/{Apps → ContextManagers}/ContextManagers.py +1 -1
- steer_core/Data/database.db +0 -0
- steer_core/DataManager.py +21 -0
- steer_core/Mixins/Coordinates.py +49 -3
- steer_core/__init__.py +10 -1
- {steer_core-0.1.26.dist-info → steer_core-0.1.28.dist-info}/METADATA +1 -1
- steer_core-0.1.28.dist-info/RECORD +25 -0
- steer_core/Apps/Callbacks/ConfigInteractions.py +0 -377
- steer_core/Apps/Callbacks/StyleManagement.py +0 -60
- steer_core/Apps/Components/MaterialSelectors.py +0 -836
- steer_core/Apps/Components/RangeSliderComponents.py +0 -552
- steer_core/Apps/Components/SliderComponents.py +0 -693
- steer_core/Apps/Components/__init__.py +0 -0
- steer_core/Apps/Performance/CallbackTimer.py +0 -18
- steer_core/Apps/Performance/__init__.py +0 -0
- steer_core/Apps/Utils/SliderControls.py +0 -728
- steer_core/Apps/Utils/__init__.py +0 -0
- steer_core/Apps/__init__.py +0 -0
- steer_core/Decorators/Electrochemical.py +0 -29
- steer_core-0.1.26.dist-info/RECORD +0 -37
- {steer_core-0.1.26.dist-info → steer_core-0.1.28.dist-info}/WHEEL +0 -0
- {steer_core-0.1.26.dist-info → steer_core-0.1.28.dist-info}/top_level.txt +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
from functools import wraps
|
|
2
|
-
import time
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
def timed_callback(func):
|
|
6
|
-
"""Time callback execution for optimization."""
|
|
7
|
-
|
|
8
|
-
@wraps(func)
|
|
9
|
-
def wrapper(*args, **kwargs):
|
|
10
|
-
start = time.time()
|
|
11
|
-
result = func(*args, **kwargs)
|
|
12
|
-
duration = time.time() - start
|
|
13
|
-
|
|
14
|
-
print(f"CALLBACK: {func.__name__} took {duration:.2f}s")
|
|
15
|
-
|
|
16
|
-
return result
|
|
17
|
-
|
|
18
|
-
return wrapper
|
|
File without changes
|