h2lib 13.1.3107__py3-none-win_amd64.whl → 13.1.3108__py3-none-win_amd64.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.
h2lib/HAWC2Lib.dll CHANGED
Binary file
h2lib/_h2lib.py CHANGED
@@ -107,8 +107,8 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
107
107
  H2LibSignatures.stop_on_error(self, bool(flag))
108
108
 
109
109
  def get_wind_speed(self, pos_g):
110
- return self.get_lib_function('get_wind_speed')(np.asarray(pos_g, dtype=np.float64),
111
- np.asarray([0, 0, 0], dtype=np.float64))[0][1]
110
+ return self.get_lib_function('get_wind_speed')(np.asfortranarray(pos_g, dtype=np.float64),
111
+ np.asfortranarray([0, 0, 0], dtype=np.float64))[0][1]
112
112
 
113
113
  def get_uvw(self, pos_g):
114
114
  vx, vy, vz = self.get_wind_speed(pos_g)
@@ -691,10 +691,9 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
691
691
  """
692
692
  if time is None:
693
693
  time = self.get_time()
694
- uvw = np.asarray(uvw, dtype=np.float32)
694
+ uvw = np.asfortranarray(uvw, dtype=np.float32)
695
695
  assert np.all(np.isfinite(uvw)), "uvw passed to h2lib.set_windfield contains nan or inf"
696
- return H2LibSignatures.set_windfield(self, np.asarray(uvw, dtype=np.float32),
697
- np.float64(box_offset_x), np.float64(time))
696
+ return H2LibSignatures.set_windfield(self, uvw, np.float64(box_offset_x), np.float64(time))
698
697
 
699
698
  # ===================================================================================================================
700
699
  # H2rotor
@@ -728,7 +727,7 @@ class H2LibThread(H2LibSignatures, DLLWrapper):
728
727
 
729
728
  def set_aerosections_windspeed(self, uvw, rotor=0):
730
729
  """Update wind speed at aero sections. uvw shape=(#blades, #sections, 3)"""
731
- return H2LibSignatures.set_aerosections_windspeed(self, rotor + 1, np.asarray(uvw, np.float64))
730
+ return H2LibSignatures.set_aerosections_windspeed(self, rotor + 1, np.asfortranarray(uvw, np.float64))
732
731
 
733
732
  def get_aerosections_forces(self, rotor=0):
734
733
  shape = self.aero_sections_data_shape(rotor)
h2lib/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is autogenerated and should not be modified manually
2
- __version__ = '13.1.3107'
3
- h2lib_version = '13.1.3107'
2
+ __version__ = '13.1.3108'
3
+ h2lib_version = '13.1.3108'
4
4
  hawc2_version = '13.1.31+5-g08eea40'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: h2lib
3
- Version: 13.1.3107
3
+ Version: 13.1.3108
4
4
  Summary: Python interface to HAWC2 (13.1.31+5-g08eea40)
5
5
  Download-URL:
6
6
  Author: Mads M. Pedersen, S.G.Horcas and N.G.Ramos
@@ -0,0 +1,10 @@
1
+ h2lib/HAWC2Lib.dll,sha256=ReL0XxKnxy48rw2yOAUwkUvkYtc1tpAadu4ZmxUIoUQ,30970368
2
+ h2lib/__init__.py,sha256=f3fO4I6IEFRM9LaV2O3w9Pioj3GPI8qRl7P5Tg5ONtE,528
3
+ h2lib/_h2lib.py,sha256=X0G8PYTrArB1Wk9IbhHvUMlximW3oCP54hIWy0SnNuM,39438
4
+ h2lib/_version.py,sha256=lcmqNx7xHhTPye8HOdQmkbGtmZzIph7zHkDju2BS3Jk,160
5
+ h2lib/dll_wrapper.py,sha256=NtH3wVJ4okYLBXjdRxpllnImRDE7p692OgHuwHkt-WQ,13552
6
+ h2lib/h2lib_signatures.py,sha256=sPCh92WdCc6brPgARZ_QBgSz49Yjq0M5SpWb0or5KvM,29396
7
+ h2lib-13.1.3108.dist-info/METADATA,sha256=6Y1lcFMbpORGK5s_1Il8Q4EaTH8QQlEkO8IR_Mf5SG4,862
8
+ h2lib-13.1.3108.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
9
+ h2lib-13.1.3108.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
10
+ h2lib-13.1.3108.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-win_amd64
5
5
 
@@ -1,10 +0,0 @@
1
- h2lib/HAWC2Lib.dll,sha256=NJYQ-Xq9pWcR2qosfcYsgI9OjsHyCsd4IBPI9dezsso,30970368
2
- h2lib/__init__.py,sha256=f3fO4I6IEFRM9LaV2O3w9Pioj3GPI8qRl7P5Tg5ONtE,528
3
- h2lib/_h2lib.py,sha256=EOxtjXytUpbQrDxTNORgZlVcZe2msKWwUXtDUGTHycs,39486
4
- h2lib/_version.py,sha256=IBX27GqSVNxn5rU0KPKGr8qTGqMuqb23KFG-ZOxoyMM,160
5
- h2lib/dll_wrapper.py,sha256=NtH3wVJ4okYLBXjdRxpllnImRDE7p692OgHuwHkt-WQ,13552
6
- h2lib/h2lib_signatures.py,sha256=sPCh92WdCc6brPgARZ_QBgSz49Yjq0M5SpWb0or5KvM,29396
7
- h2lib-13.1.3107.dist-info/METADATA,sha256=z1ZdPPtzjxH1A35L03IgHT6SnG7LxEzGuxYMjqFAvGk,862
8
- h2lib-13.1.3107.dist-info/WHEEL,sha256=YvQgr19VPpDKcQ70xCXIWyDmGnURmFmzZpp_Uw5rBS8,101
9
- h2lib-13.1.3107.dist-info/top_level.txt,sha256=y_a-tUqphEZQ_0nsWSMaSb21P8Lsd8hUxUdE9g2Dcbk,6
10
- h2lib-13.1.3107.dist-info/RECORD,,