turbo-design 1.0.4__py3-none-any.whl → 1.0.6__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: turbo-design
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: TurboDesign is a library used to design turbines and compressors using radial equilibrium.
5
5
  Author: Paht Juangphanich
6
6
  Author-email: paht.juangphanich@nasa.gov
@@ -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=PuiOk_NL_yrYp9ZSCmq8E_rcgZN6Fgth_6Q7BFduMTA,5554
16
- turbodesign/loss/turbine/craigcox.py,sha256=Bcjh1ywol6hftBvaIwEqGMPWSjELMUDWC5dNnc20n7g,9331
15
+ turbodesign/loss/turbine/ainleymathieson.py,sha256=8UbugNmxI12I68HGctJe2lQpqjKZN1b40UOTzqU6hQQ,5861
16
+ turbodesign/loss/turbine/craigcox.py,sha256=TrbNdpGdyD5kTRFKfNmbRDhCOjA0-GT5xoluLQpO1gA,9664
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=29v9BGFNowy7JDxNR625n4Wb_aIpOJZFuapm0fjpVhs,4772
20
- turbodesign/loss/turbine/traupel.py,sha256=YgcJKmgTyoNLvNRatl5pPgWEb5Sw5HrVYQpHsiV3oXU,3871
19
+ turbodesign/loss/turbine/kackerokapuu.py,sha256=EaGOSCB5OxkaeUDfzMxiIYCyTXiAenkWZNa39ZfGb8k,5072
20
+ turbodesign/loss/turbine/traupel.py,sha256=aZxFE9JDcCfi1gy-fqS1SxjjlhuDG-H-g3LPurty1M0,4164
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.4.dist-info/METADATA,sha256=04QFyM_uDMBELzEPT5uJ0pyGF-z5C1mOtVOIQ_0SnaI,683
32
- turbo_design-1.0.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- turbo_design-1.0.4.dist-info/RECORD,,
31
+ turbo_design-1.0.6.dist-info/METADATA,sha256=JYEy9fOYc-rw36EluGIR4UACKPs3nIPKzOweJvFQhFg,683
32
+ turbo_design-1.0.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ turbo_design-1.0.6.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
- print('Download file if doesn\'t exist')
31
+ url = "https://github.com/nasa/turbo-design/raw/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
- print('Download file if doesn\'t exist')
24
+ # Download data from Github
25
+ url = "https://github.com/nasa/turbo-design/raw/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
- print('Download file if doesn\'t exist')
28
+ url = "https://github.com/nasa/turbo-design/raw/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
- print('Download file if doesn\'t exist')
17
+ url = "https://github.com/nasa/turbo-design/raw/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