steer-core 0.1.8__tar.gz → 0.1.9__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.
Files changed (42) hide show
  1. {steer_core-0.1.8 → steer_core-0.1.9}/PKG-INFO +1 -1
  2. {steer_core-0.1.8 → steer_core-0.1.9}/setup.py +1 -0
  3. steer_core-0.1.9/steer_core/Data/database.db +0 -0
  4. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/DataManager.py +5 -3
  5. steer_core-0.1.9/steer_core/__init__.py +1 -0
  6. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core.egg-info/PKG-INFO +1 -1
  7. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core.egg-info/SOURCES.txt +1 -0
  8. steer_core-0.1.8/steer_core/__init__.py +0 -1
  9. {steer_core-0.1.8 → steer_core-0.1.9}/README.md +0 -0
  10. {steer_core-0.1.8 → steer_core-0.1.9}/setup.cfg +0 -0
  11. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Components/CompoundComponents.py +0 -0
  12. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Components/RangeSliderComponents.py +0 -0
  13. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Components/SliderComponents.py +0 -0
  14. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Components/__init__.py +0 -0
  15. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/ContextManagers.py +0 -0
  16. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Performance/CallbackTimer.py +0 -0
  17. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Performance/__init__.py +0 -0
  18. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Utils/SliderControls.py +0 -0
  19. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/Utils/__init__.py +0 -0
  20. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Apps/__init__.py +0 -0
  21. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Constants/Units.py +0 -0
  22. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Constants/Universal.py +0 -0
  23. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Constants/__init__.py +0 -0
  24. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/ContextManagers/__init__.py +0 -0
  25. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Data/__init__.py +0 -0
  26. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Decorators/Coordinates.py +0 -0
  27. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Decorators/Electrochemical.py +0 -0
  28. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Decorators/General.py +0 -0
  29. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Decorators/Objects.py +0 -0
  30. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Decorators/__init__.py +0 -0
  31. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Mixins/Colors.py +0 -0
  32. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Mixins/Coordinates.py +0 -0
  33. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Mixins/Data.py +0 -0
  34. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Mixins/Serializer.py +0 -0
  35. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Mixins/Validators.py +0 -0
  36. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core/Mixins/__init__.py +0 -0
  37. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core.egg-info/dependency_links.txt +0 -0
  38. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core.egg-info/requires.txt +0 -0
  39. {steer_core-0.1.8 → steer_core-0.1.9}/steer_core.egg-info/top_level.txt +0 -0
  40. {steer_core-0.1.8 → steer_core-0.1.9}/test/test_compound_components.py +0 -0
  41. {steer_core-0.1.8 → steer_core-0.1.9}/test/test_compound_components_clean.py +0 -0
  42. {steer_core-0.1.8 → steer_core-0.1.9}/test/test_slider_controls.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: steer-core
3
- Version: 0.1.8
3
+ Version: 0.1.9
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
@@ -22,6 +22,7 @@ setup(
22
22
  "scipy==1.15.3",
23
23
  "plotly==6.2.0",
24
24
  ],
25
+ package_data={"steer_core.Data": ["database.db"]},
25
26
  scripts=[],
26
27
  classifiers=[
27
28
  "Programming Language :: Python :: 3",
@@ -1,6 +1,7 @@
1
1
  import sqlite3 as sql
2
2
  from pathlib import Path
3
3
  import pandas as pd
4
+ import importlib.resources
4
5
 
5
6
  from steer_core.Constants.Units import *
6
7
 
@@ -9,9 +10,10 @@ class DataManager:
9
10
 
10
11
  def __init__(self):
11
12
 
12
- self._db_path = (Path(__file__).parent / '../steer_core/Data/database.db').resolve()
13
- self._connection = sql.connect(self._db_path)
14
- self._cursor = self._connection.cursor()
13
+ with importlib.resources.path("steer_core.Data", "database.db") as db_path:
14
+ self._db_path = db_path
15
+ self._connection = sql.connect(self._db_path)
16
+ self._cursor = self._connection.cursor()
15
17
 
16
18
  def create_table(self, table_name: str, columns: dict):
17
19
  """
@@ -0,0 +1 @@
1
+ __version__ = "0.1.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: steer-core
3
- Version: 0.1.8
3
+ Version: 0.1.9
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
@@ -22,6 +22,7 @@ steer_core/Constants/Universal.py
22
22
  steer_core/Constants/__init__.py
23
23
  steer_core/ContextManagers/__init__.py
24
24
  steer_core/Data/__init__.py
25
+ steer_core/Data/database.db
25
26
  steer_core/Decorators/Coordinates.py
26
27
  steer_core/Decorators/Electrochemical.py
27
28
  steer_core/Decorators/General.py
@@ -1 +0,0 @@
1
- __version__ = "0.1.8"
File without changes
File without changes