steer-materials 0.1.17__py3-none-any.whl → 0.1.19__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_materials/Base.py +11 -11
- steer_materials/__init__.py +1 -1
- {steer_materials-0.1.17.dist-info → steer_materials-0.1.19.dist-info}/METADATA +2 -2
- steer_materials-0.1.19.dist-info/RECORD +6 -0
- steer_materials-0.1.17.dist-info/RECORD +0 -6
- {steer_materials-0.1.17.dist-info → steer_materials-0.1.19.dist-info}/WHEEL +0 -0
- {steer_materials-0.1.17.dist-info → steer_materials-0.1.19.dist-info}/top_level.txt +0 -0
steer_materials/Base.py
CHANGED
|
@@ -10,8 +10,8 @@ import numpy as np
|
|
|
10
10
|
|
|
11
11
|
class _Material(
|
|
12
12
|
ValidationMixin,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
DunderMixin,
|
|
14
|
+
SerializerMixin
|
|
15
15
|
):
|
|
16
16
|
|
|
17
17
|
def __init__(self, name: str, density: float, specific_cost: float, color: str):
|
|
@@ -43,13 +43,13 @@ class _Material(
|
|
|
43
43
|
|
|
44
44
|
@property
|
|
45
45
|
def density(self):
|
|
46
|
-
return round(self._density * (KG_TO_G / M_TO_CM**3), 2)
|
|
46
|
+
return np.round(self._density * (KG_TO_G / M_TO_CM**3), 2)
|
|
47
47
|
|
|
48
48
|
@property
|
|
49
49
|
def density_range(self):
|
|
50
50
|
return (
|
|
51
|
-
round(self._density_range[0] * (KG_TO_G / M_TO_CM**3), 2),
|
|
52
|
-
round(self._density_range[1] * (KG_TO_G / M_TO_CM**3), 2),
|
|
51
|
+
np.round(self._density_range[0] * (KG_TO_G / M_TO_CM**3), 2),
|
|
52
|
+
np.round(self._density_range[1] * (KG_TO_G / M_TO_CM**3), 2),
|
|
53
53
|
)
|
|
54
54
|
|
|
55
55
|
@property
|
|
@@ -58,13 +58,13 @@ class _Material(
|
|
|
58
58
|
|
|
59
59
|
@property
|
|
60
60
|
def specific_cost(self):
|
|
61
|
-
return round(self._specific_cost, 2)
|
|
61
|
+
return np.round(self._specific_cost, 2)
|
|
62
62
|
|
|
63
63
|
@property
|
|
64
64
|
def specific_cost_range(self):
|
|
65
65
|
return (
|
|
66
|
-
round(self._specific_cost_range[0], 2),
|
|
67
|
-
round(self._specific_cost_range[1], 2),
|
|
66
|
+
np.round(self._specific_cost_range[0], 2),
|
|
67
|
+
np.round(self._specific_cost_range[1], 2),
|
|
68
68
|
)
|
|
69
69
|
|
|
70
70
|
@property
|
|
@@ -173,21 +173,21 @@ class _VolumedMaterialMixin:
|
|
|
173
173
|
@property
|
|
174
174
|
def volume(self):
|
|
175
175
|
if hasattr(self, '_volume') and self._volume is not None:
|
|
176
|
-
return round(self._volume * (M_TO_CM**3), 4)
|
|
176
|
+
return np.round(self._volume * (M_TO_CM**3), 4)
|
|
177
177
|
else:
|
|
178
178
|
return None
|
|
179
179
|
|
|
180
180
|
@property
|
|
181
181
|
def mass(self):
|
|
182
182
|
if hasattr(self, '_mass') and self._mass is not None:
|
|
183
|
-
return round(self._mass * KG_TO_G, 2)
|
|
183
|
+
return np.round(self._mass * KG_TO_G, 2)
|
|
184
184
|
else:
|
|
185
185
|
return None
|
|
186
186
|
|
|
187
187
|
@property
|
|
188
188
|
def cost(self):
|
|
189
189
|
if hasattr(self, '_cost') and self._cost is not None:
|
|
190
|
-
return round(self._cost, 2)
|
|
190
|
+
return np.round(self._cost, 2)
|
|
191
191
|
else:
|
|
192
192
|
return None
|
|
193
193
|
|
steer_materials/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.19"
|
|
2
2
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: steer-materials
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.19
|
|
4
4
|
Summary: Modelling energy storage from cell to site - STEER OpenCell Design
|
|
5
5
|
Author-email: Nicholas Siemons <nsiemons@stanford.edu>
|
|
6
6
|
Maintainer-email: Nicholas Siemons <nsiemons@stanford.edu>
|
|
@@ -22,7 +22,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
22
22
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
23
|
Requires-Python: >=3.10
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
|
-
Requires-Dist: steer-core==0.1.
|
|
25
|
+
Requires-Dist: steer-core==0.1.34
|
|
26
26
|
Provides-Extra: dev
|
|
27
27
|
Requires-Dist: pytest; extra == "dev"
|
|
28
28
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
steer_materials/Base.py,sha256=GU879XmYg15faUNAVIDFajz4UnmnzpG637_OZ4bZqjc,6155
|
|
2
|
+
steer_materials/__init__.py,sha256=6tnuZovonD7YdM-OVvctlazpGv5MmkO_yJLeLDmnvGw,24
|
|
3
|
+
steer_materials-0.1.19.dist-info/METADATA,sha256=MrRtumzWdsZMH3JJYpZbx5SItOf4hCFG2hC5IqV_Wr4,1622
|
|
4
|
+
steer_materials-0.1.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
steer_materials-0.1.19.dist-info/top_level.txt,sha256=vlZIS_XS59tP1rltDORHZbwi6KZ99QjnPoPN46hpsP0,16
|
|
6
|
+
steer_materials-0.1.19.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
steer_materials/Base.py,sha256=MhIe_oFF_wljbivP8GF56PZCdgyPEiR4xBc4Bsn_EBw,6128
|
|
2
|
-
steer_materials/__init__.py,sha256=CsJQ6eHgR7sw3Q6_uhlOBZNYJdrrx4wGir6o855GjwM,24
|
|
3
|
-
steer_materials-0.1.17.dist-info/METADATA,sha256=K1F-6IoYbcwn0YDaRYoI_QD3rEmLZCcmuc6F3w2qEKk,1622
|
|
4
|
-
steer_materials-0.1.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
steer_materials-0.1.17.dist-info/top_level.txt,sha256=vlZIS_XS59tP1rltDORHZbwi6KZ99QjnPoPN46hpsP0,16
|
|
6
|
-
steer_materials-0.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|