turbo-design 1.0.4__py3-none-any.whl → 1.0.5__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.
Potentially problematic release.
This version of turbo-design might be problematic. Click here for more details.
- {turbo_design-1.0.4.dist-info → turbo_design-1.0.5.dist-info}/METADATA +1 -1
- {turbo_design-1.0.4.dist-info → turbo_design-1.0.5.dist-info}/RECORD +7 -7
- turbodesign/loss/turbine/ainleymathieson.py +6 -1
- turbodesign/loss/turbine/craigcox.py +7 -1
- turbodesign/loss/turbine/kackerokapuu.py +6 -1
- turbodesign/loss/turbine/traupel.py +6 -1
- {turbo_design-1.0.4.dist-info → turbo_design-1.0.5.dist-info}/WHEEL +0 -0
|
@@ -12,12 +12,12 @@ turbodesign/loss/compressor/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY7
|
|
|
12
12
|
turbodesign/loss/losstype.py,sha256=Vzj3UPk1_5IA3DtL56Eb5Z7LkYyMQ97DGZvgfki8ByA,708
|
|
13
13
|
turbodesign/loss/turbine/TD2.py,sha256=evyTG4K6s56NGdjxrZFD3G7zsB8_2lJTBOxT3Ju2uG8,5207
|
|
14
14
|
turbodesign/loss/turbine/__init__.py,sha256=gxTSMzUGgRHaUbG6SWrXg_XsQs7A6LNWeL_EMgHiuoc,286
|
|
15
|
-
turbodesign/loss/turbine/ainleymathieson.py,sha256=
|
|
16
|
-
turbodesign/loss/turbine/craigcox.py,sha256=
|
|
15
|
+
turbodesign/loss/turbine/ainleymathieson.py,sha256=cR8T-Uf75p-3cvlg6A3smi68LSJaubA_kSL7iBQw6po,5862
|
|
16
|
+
turbodesign/loss/turbine/craigcox.py,sha256=GZt9lMTPI7U_uIM7IiRlZOYNGegHY0ImVXo5A5S8kJ0,9665
|
|
17
17
|
turbodesign/loss/turbine/fixedefficiency.py,sha256=JJv4GUS5q9pvuf3akjBtlcHOykRYmRVFfDDrdWqH6S4,774
|
|
18
18
|
turbodesign/loss/turbine/fixedpressureloss.py,sha256=jbm8dt8wtyN1RaOgpgYZsvwM0-0lv2Y73kXleyoy0zE,683
|
|
19
|
-
turbodesign/loss/turbine/kackerokapuu.py,sha256=
|
|
20
|
-
turbodesign/loss/turbine/traupel.py,sha256=
|
|
19
|
+
turbodesign/loss/turbine/kackerokapuu.py,sha256=naOolqqQbW8hOoGe70H2WuovUF4zIc_FXrJT1Xan9yI,5073
|
|
20
|
+
turbodesign/loss/turbine/traupel.py,sha256=6DHmeCrPjDlC-Q4XNTm2nQKEt6wx7ECLjCkWPGaF1bo,4165
|
|
21
21
|
turbodesign/lossinterp.py,sha256=B2KEobp-nD9jwD6UINgBmTlH9kKyWg3UNvXxqfUsr-k,6198
|
|
22
22
|
turbodesign/outlet.py,sha256=SwTwoL6XnWlsrE5A6wLxu3qXkydDDUsdKKeBbJm4mrQ,2069
|
|
23
23
|
turbodesign/passage.py,sha256=1Erl03ISwV4fTwRjgh2cCTdNpUpT1O4zrZh8xO-1zSU,7577
|
|
@@ -28,6 +28,6 @@ turbodesign/spool.py,sha256=uDmAAZ_ougiHbjQG4qhyaOrxs6qAOXV9eri6mpiUHz0,13073
|
|
|
28
28
|
turbodesign/stage.py,sha256=UP45sDKDLsAkO_WfDWJ6kqXU7cYKh_4QO01QZnSN1oQ,166
|
|
29
29
|
turbodesign/td_math.py,sha256=I_0cwr38O21MSvsrcTHcx_4N50nTpFKZR1IT-mKqsws,17227
|
|
30
30
|
turbodesign/turbinespool.py,sha256=2f5wT668vRiZSb02R5TM74ZDAXiCUX2ikZCdqzFmkRY,21532
|
|
31
|
-
turbo_design-1.0.
|
|
32
|
-
turbo_design-1.0.
|
|
33
|
-
turbo_design-1.0.
|
|
31
|
+
turbo_design-1.0.5.dist-info/METADATA,sha256=LgTOdiXPLOVGdZDGy0MoHs49Wak6HbMJXPO_GApZCyM,683
|
|
32
|
+
turbo_design-1.0.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
33
|
+
turbo_design-1.0.5.dist-info/RECORD,,
|
|
@@ -6,6 +6,7 @@ from ...enums import RowType, LossType
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
import pathlib
|
|
8
8
|
from ..losstype import LossBaseClass
|
|
9
|
+
import requests
|
|
9
10
|
|
|
10
11
|
class AinleyMathieson(LossBaseClass):
|
|
11
12
|
|
|
@@ -27,7 +28,11 @@ class AinleyMathieson(LossBaseClass):
|
|
|
27
28
|
path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"ainleymathieson"+".pkl"))
|
|
28
29
|
|
|
29
30
|
if not path.exists():
|
|
30
|
-
|
|
31
|
+
url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/AinleyMathieson/ainleymathieson.pkl"
|
|
32
|
+
response = requests.get(url, stream=True)
|
|
33
|
+
with open(path.absolute(), mode="wb") as file:
|
|
34
|
+
for chunk in response.iter_content(chunk_size=10 * 1024):
|
|
35
|
+
file.write(chunk)
|
|
31
36
|
|
|
32
37
|
with open(path.absolute(),'rb') as f:
|
|
33
38
|
self.data = pickle.load(f) # type: ignore
|
|
@@ -6,6 +6,7 @@ from ...enums import RowType, LossType
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
import pathlib
|
|
8
8
|
from ..losstype import LossBaseClass
|
|
9
|
+
import requests
|
|
9
10
|
|
|
10
11
|
class CraigCox(LossBaseClass):
|
|
11
12
|
|
|
@@ -20,7 +21,12 @@ class CraigCox(LossBaseClass):
|
|
|
20
21
|
path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"craigcox"+".pkl"))
|
|
21
22
|
|
|
22
23
|
if not path.exists():
|
|
23
|
-
|
|
24
|
+
# Download data from Github
|
|
25
|
+
url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/CraigCox/craigcox.pkl"
|
|
26
|
+
response = requests.get(url, stream=True)
|
|
27
|
+
with open(path.absolute(), mode="wb") as file:
|
|
28
|
+
for chunk in response.iter_content(chunk_size=10 * 1024):
|
|
29
|
+
file.write(chunk)
|
|
24
30
|
|
|
25
31
|
with open(path.absolute(),'rb') as f:
|
|
26
32
|
self.data = pickle.load(f) # type: ignore
|
|
@@ -6,6 +6,7 @@ from ...enums import RowType, LossType
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
import pathlib
|
|
8
8
|
from ..losstype import LossBaseClass
|
|
9
|
+
import requests
|
|
9
10
|
|
|
10
11
|
class KrackerOkapuu(LossBaseClass):
|
|
11
12
|
|
|
@@ -24,7 +25,11 @@ class KrackerOkapuu(LossBaseClass):
|
|
|
24
25
|
path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"kackerokapuu"+".pkl"))
|
|
25
26
|
|
|
26
27
|
if not path.exists():
|
|
27
|
-
|
|
28
|
+
url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/KackerOkapuu/kackerokapuu.pkl"
|
|
29
|
+
response = requests.get(url, stream=True)
|
|
30
|
+
with open(path.absolute(), mode="wb") as file:
|
|
31
|
+
for chunk in response.iter_content(chunk_size=10 * 1024):
|
|
32
|
+
file.write(chunk)
|
|
28
33
|
|
|
29
34
|
with open(path.absolute(),'rb') as f:
|
|
30
35
|
self.data = pickle.load(f) # type: ignore
|
|
@@ -6,6 +6,7 @@ from ...enums import RowType, LossType
|
|
|
6
6
|
import numpy as np
|
|
7
7
|
import pathlib
|
|
8
8
|
from ..losstype import LossBaseClass
|
|
9
|
+
import requests
|
|
9
10
|
|
|
10
11
|
class Traupel(LossBaseClass):
|
|
11
12
|
def __init__(self):
|
|
@@ -13,7 +14,11 @@ class Traupel(LossBaseClass):
|
|
|
13
14
|
path = pathlib.Path(os.path.join(os.environ['TD3_HOME'],"traupel"+".pkl"))
|
|
14
15
|
|
|
15
16
|
if not path.exists():
|
|
16
|
-
|
|
17
|
+
url = "https://github.com/nasa/turbo-design/blob/main/references/Turbines/Traupel/traupel.pkl"
|
|
18
|
+
response = requests.get(url, stream=True)
|
|
19
|
+
with open(path.absolute(), mode="wb") as file:
|
|
20
|
+
for chunk in response.iter_content(chunk_size=10 * 1024):
|
|
21
|
+
file.write(chunk)
|
|
17
22
|
|
|
18
23
|
with open(path.absolute(),'rb') as f:
|
|
19
24
|
self.data = pickle.load(f) # type: ignore
|
|
File without changes
|