steer-core 0.1.8__py3-none-any.whl → 0.1.9__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.
Binary file
steer_core/DataManager.py CHANGED
@@ -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
  """
steer_core/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.8"
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
@@ -1,5 +1,5 @@
1
- steer_core/DataManager.py,sha256=r9AmA1Aqmjk66xrUp03GFdVbp0ChFod6NmonUr8SGOw,11094
2
- steer_core/__init__.py,sha256=C69ADlbQREQlR15trneyA2sk8x0-oH4rDAX5fsv19_U,22
1
+ steer_core/DataManager.py,sha256=KKpN8GiVHm8xfUmjHKgfLt_xRXT--dhNX8gxs022VHs,11156
2
+ steer_core/__init__.py,sha256=XIaxbMbyiP-L3kguR1GhxirFblTXiHR1lMfDVITvHUI,22
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/CompoundComponents.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -15,6 +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=q0JM2I0Pd28YVq9kxfGbFxFnuM-13cFjCwhL0FdwrJg,12795904
18
19
  steer_core/Decorators/Coordinates.py,sha256=qo79PlA8ZZ6QY-VvH9YGg27gqpVJ2-Xa3blyoQVCp7A,1436
19
20
  steer_core/Decorators/Electrochemical.py,sha256=fAy89aw3zspBu_8UPa5kEhUpvO-bYpM0xH1r6O6mSiA,985
20
21
  steer_core/Decorators/General.py,sha256=-Wu-kTC9JAokicgt_nvANR7zpbCBPNR1kDmY6jzHfy4,966
@@ -26,7 +27,7 @@ steer_core/Mixins/Data.py,sha256=wdNedZHS5Q7B-pCIoEbqTWMcxsC91CVn9pbQ2Zszg3w,136
26
27
  steer_core/Mixins/Serializer.py,sha256=x-aX8BcFSh5egZdkKinYMmIHLqZymCnETNUld3hzgnk,1039
27
28
  steer_core/Mixins/Validators.py,sha256=VmWmv1M8YqTzaIyc95TOvNEJScG7o8rQezQNor84DEc,12933
28
29
  steer_core/Mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- steer_core-0.1.8.dist-info/METADATA,sha256=OXEtqslyWv7raTe8Mv-9vT8q75W9iA6kDOzCxhVykhY,703
30
- steer_core-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- steer_core-0.1.8.dist-info/top_level.txt,sha256=6LFpGCSDE_SqRoT7raeM3Ax7KTBKQnyXLXxM9kXtw5M,11
32
- steer_core-0.1.8.dist-info/RECORD,,
30
+ steer_core-0.1.9.dist-info/METADATA,sha256=HTEex5neesD31cFzb4vNPy2-hajPveSZFWFijOemmJ0,703
31
+ steer_core-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
32
+ steer_core-0.1.9.dist-info/top_level.txt,sha256=6LFpGCSDE_SqRoT7raeM3Ax7KTBKQnyXLXxM9kXtw5M,11
33
+ steer_core-0.1.9.dist-info/RECORD,,