sdfr 1.3.0__py3-none-macosx_11_0_arm64.whl → 1.4.0__py3-none-macosx_11_0_arm64.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.
- sdfr/SDF.py +34 -0
- sdfr/_commit_info.py +2 -2
- sdfr/libsdfc_shared.dylib +0 -0
- {sdfr-1.3.0.dist-info → sdfr-1.4.0.dist-info}/METADATA +1 -1
- sdfr-1.4.0.dist-info/RECORD +11 -0
- {sdfr-1.3.0.dist-info → sdfr-1.4.0.dist-info}/WHEEL +1 -1
- sdfr-1.3.0.dist-info/RECORD +0 -11
- {sdfr-1.3.0.dist-info → sdfr-1.4.0.dist-info}/licenses/LICENSE +0 -0
- {sdfr-1.3.0.dist-info → sdfr-1.4.0.dist-info}/licenses/LICENSE_README.txt +0 -0
sdfr/SDF.py
CHANGED
|
@@ -442,6 +442,11 @@ class BlockList:
|
|
|
442
442
|
meshes.append(newblock)
|
|
443
443
|
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_RUN_INFO:
|
|
444
444
|
self.Run_info = get_run_info(block)
|
|
445
|
+
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_STATION:
|
|
446
|
+
sdict = BlockStation(block, name)
|
|
447
|
+
self.__dict__.update({"StationBlocks": sdict})
|
|
448
|
+
self._block_ids.update({block.id.decode(): sdict})
|
|
449
|
+
self._block_names.update({block.name.decode(): sdict})
|
|
445
450
|
else:
|
|
446
451
|
# Block not supported
|
|
447
452
|
# print(name,SdfBlockType(blocktype).name)
|
|
@@ -803,6 +808,35 @@ class BlockData(Block):
|
|
|
803
808
|
return self._mimetype
|
|
804
809
|
|
|
805
810
|
|
|
811
|
+
def BlockStation(block, name):
|
|
812
|
+
"""Station block"""
|
|
813
|
+
sdict = dict(
|
|
814
|
+
stations=None,
|
|
815
|
+
step=block.step,
|
|
816
|
+
step_increment=block.step_increment,
|
|
817
|
+
time=block.time,
|
|
818
|
+
time_increment=block.time_increment,
|
|
819
|
+
)
|
|
820
|
+
|
|
821
|
+
tdict = {}
|
|
822
|
+
for i in range(block.nstations):
|
|
823
|
+
varnames = []
|
|
824
|
+
for j in range(block.station_nvars[i]):
|
|
825
|
+
varnames.append(block.material_names[i + j + 1].decode())
|
|
826
|
+
stat = dict(variables=varnames)
|
|
827
|
+
stat.update({"station_move": bool(block.station_move[i])})
|
|
828
|
+
if block.ndims > 0:
|
|
829
|
+
stat.update({"station_x": block.station_x[i]})
|
|
830
|
+
if block.ndims > 1:
|
|
831
|
+
stat.update({"station_y": block.station_y[i]})
|
|
832
|
+
if block.ndims > 2:
|
|
833
|
+
stat.update({"station_z": block.station_z[i]})
|
|
834
|
+
tdict.update({block.station_names[i].decode(): stat})
|
|
835
|
+
sdict.update({"stations": tdict})
|
|
836
|
+
|
|
837
|
+
return {name: sdict}
|
|
838
|
+
|
|
839
|
+
|
|
806
840
|
class BlockStitched(Block):
|
|
807
841
|
"""Stitched block"""
|
|
808
842
|
|
sdfr/_commit_info.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__commit_date__ = "
|
|
2
|
-
__commit_id__ = "
|
|
1
|
+
__commit_date__ = "Tue May 20 13:50:42 2025 +0100"
|
|
2
|
+
__commit_id__ = "f5e130988f5c6f06f9fb34a23cefc953857a3908"
|
sdfr/libsdfc_shared.dylib
CHANGED
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
sdfr/_commit_info.py,sha256=xWby5pBHkz40Df4UMHZ9hAQrFZmEhUpY0EwLKSy5QyE,110
|
|
2
|
+
sdfr/sdf_helper.py,sha256=Fdod2nwFih-5h_Vpy2sq-sHPhAXOwKM-esfmQWGgbX4,61359
|
|
3
|
+
sdfr/__init__.py,sha256=BAmluKbA8UkwlUTWKxjNyaSfx9xgTUaXovnSHQvr0qo,1111
|
|
4
|
+
sdfr/SDF.py,sha256=-MbMqvOzQE3ifhN0gn_ulS2sXh3ijUT1GTIPgBI-hE0,30084
|
|
5
|
+
sdfr/loadlib.py,sha256=dr5jYKAjAhW0jKCzudphV0D4e3-6lxAufsTVJHKYcZ8,2262
|
|
6
|
+
sdfr/libsdfc_shared.dylib,sha256=cxT9NMCj3MC5rKEL8Irn_DAey4raec_wuKNg2NwdFw0,173176
|
|
7
|
+
sdfr-1.4.0.dist-info/RECORD,,
|
|
8
|
+
sdfr-1.4.0.dist-info/WHEEL,sha256=HTrPOApIPwPBm17ZPxRHsFBiLMv7HIyEx-CtG-rvYPM,111
|
|
9
|
+
sdfr-1.4.0.dist-info/METADATA,sha256=lkxSLGXDi0cJXyueMbl5CWZelo3inMyLBplq13u0Sco,370
|
|
10
|
+
sdfr-1.4.0.dist-info/licenses/LICENSE,sha256=Qu02Dqb67LYxdjaA0WVeZMwzcDFF_bSearhX7yzLCJQ,1621
|
|
11
|
+
sdfr-1.4.0.dist-info/licenses/LICENSE_README.txt,sha256=kU0OIq6O4_qqBwDWpJrPw2nNLWDCDI7oJGCe_JBF8j0,231
|
sdfr-1.3.0.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
sdfr/_commit_info.py,sha256=T7y16HUeYZNuXukYkWPIJasprTNgJ374pZrP-7Fn4Is,109
|
|
2
|
-
sdfr/sdf_helper.py,sha256=Fdod2nwFih-5h_Vpy2sq-sHPhAXOwKM-esfmQWGgbX4,61359
|
|
3
|
-
sdfr/__init__.py,sha256=BAmluKbA8UkwlUTWKxjNyaSfx9xgTUaXovnSHQvr0qo,1111
|
|
4
|
-
sdfr/SDF.py,sha256=IxOc0JTMVpMqVE5Xp4Vwdt6bzgJl5OkmvLA81tjuuHQ,28836
|
|
5
|
-
sdfr/loadlib.py,sha256=dr5jYKAjAhW0jKCzudphV0D4e3-6lxAufsTVJHKYcZ8,2262
|
|
6
|
-
sdfr/libsdfc_shared.dylib,sha256=CWhVFy-1lIotmHCJkxtErU8YuM_g4IVFovgyHa0ZEjs,173176
|
|
7
|
-
sdfr-1.3.0.dist-info/RECORD,,
|
|
8
|
-
sdfr-1.3.0.dist-info/WHEEL,sha256=IoXaaiGmdlaXKMxcV8qzyNxnbZ83Rlz8PkPkhmUIHwY,111
|
|
9
|
-
sdfr-1.3.0.dist-info/METADATA,sha256=qhi1HXCNjSgmcm0qLSwEETcCJnsec_45pXXf_41noyo,370
|
|
10
|
-
sdfr-1.3.0.dist-info/licenses/LICENSE,sha256=Qu02Dqb67LYxdjaA0WVeZMwzcDFF_bSearhX7yzLCJQ,1621
|
|
11
|
-
sdfr-1.3.0.dist-info/licenses/LICENSE_README.txt,sha256=kU0OIq6O4_qqBwDWpJrPw2nNLWDCDI7oJGCe_JBF8j0,231
|
|
File without changes
|
|
File without changes
|