sdfr 1.4.0__py3-none-macosx_11_0_arm64.whl → 1.4.1__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 +10 -10
- sdfr/__init__.py +4 -1
- sdfr/_commit_info.py +2 -2
- sdfr/libsdfc_shared.dylib +0 -0
- {sdfr-1.4.0.dist-info → sdfr-1.4.1.dist-info}/METADATA +1 -1
- sdfr-1.4.1.dist-info/RECORD +11 -0
- {sdfr-1.4.0.dist-info → sdfr-1.4.1.dist-info}/WHEEL +1 -1
- sdfr-1.4.0.dist-info/RECORD +0 -11
- {sdfr-1.4.0.dist-info → sdfr-1.4.1.dist-info}/licenses/LICENSE +0 -0
- {sdfr-1.4.0.dist-info → sdfr-1.4.1.dist-info}/licenses/LICENSE_README.txt +0 -0
sdfr/SDF.py
CHANGED
|
@@ -367,7 +367,7 @@ class BlockList:
|
|
|
367
367
|
|
|
368
368
|
block = h.contents.blocklist
|
|
369
369
|
self.Header = get_header(h.contents)
|
|
370
|
-
|
|
370
|
+
mesh_id_map = {}
|
|
371
371
|
mesh_vars = []
|
|
372
372
|
self._block_ids = {}
|
|
373
373
|
self._block_names = {}
|
|
@@ -417,7 +417,7 @@ class BlockList:
|
|
|
417
417
|
if block.datatype_out != 0:
|
|
418
418
|
newblock = BlockLagrangianMesh(block)
|
|
419
419
|
newblock_mid = block
|
|
420
|
-
|
|
420
|
+
mesh_id_map[newblock.id] = newblock
|
|
421
421
|
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_NAMEVALUE:
|
|
422
422
|
newblock = BlockNameValue(block)
|
|
423
423
|
elif (
|
|
@@ -430,7 +430,7 @@ class BlockList:
|
|
|
430
430
|
if block.datatype_out != 0:
|
|
431
431
|
newblock = BlockPlainMesh(block)
|
|
432
432
|
newblock_mid = block
|
|
433
|
-
|
|
433
|
+
mesh_id_map[newblock.id] = newblock
|
|
434
434
|
elif (
|
|
435
435
|
blocktype == SdfBlockType.SDF_BLOCKTYPE_POINT_DERIVED
|
|
436
436
|
or blocktype == SdfBlockType.SDF_BLOCKTYPE_POINT_VARIABLE
|
|
@@ -439,7 +439,7 @@ class BlockList:
|
|
|
439
439
|
mesh_vars.append(newblock)
|
|
440
440
|
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_POINT_MESH:
|
|
441
441
|
newblock = BlockPointMesh(block)
|
|
442
|
-
|
|
442
|
+
mesh_id_map[newblock.id] = newblock
|
|
443
443
|
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_RUN_INFO:
|
|
444
444
|
self.Run_info = get_run_info(block)
|
|
445
445
|
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_STATION:
|
|
@@ -452,7 +452,8 @@ class BlockList:
|
|
|
452
452
|
# print(name,SdfBlockType(blocktype).name)
|
|
453
453
|
pass
|
|
454
454
|
if newblock is not None:
|
|
455
|
-
|
|
455
|
+
if not block.dont_display:
|
|
456
|
+
self.__dict__[name] = newblock
|
|
456
457
|
self._block_ids.update({block.id.decode(): newblock})
|
|
457
458
|
self._block_names.update({block.name.decode(): newblock})
|
|
458
459
|
block = block.next
|
|
@@ -467,7 +468,8 @@ class BlockList:
|
|
|
467
468
|
newblock = BlockLagrangianMesh(block_mid, mid=True)
|
|
468
469
|
elif blocktype == SdfBlockType.SDF_BLOCKTYPE_PLAIN_MESH:
|
|
469
470
|
newblock = BlockPlainMesh(block_mid, mid=True)
|
|
470
|
-
|
|
471
|
+
if not newblock_mid.dont_display:
|
|
472
|
+
self.__dict__[name] = newblock
|
|
471
473
|
nm = block_mid.id.decode() + "_mid"
|
|
472
474
|
self._block_ids.update({nm: newblock})
|
|
473
475
|
nm = block_mid.name.decode() + "_mid"
|
|
@@ -475,10 +477,8 @@ class BlockList:
|
|
|
475
477
|
|
|
476
478
|
for var in mesh_vars:
|
|
477
479
|
gid = var.grid_id
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
var._grid = mesh
|
|
481
|
-
break
|
|
480
|
+
if gid in mesh_id_map:
|
|
481
|
+
var._grid = mesh_id_map[gid]
|
|
482
482
|
|
|
483
483
|
def __del__(self):
|
|
484
484
|
self._clib.sdf_stack_destroy.argtypes = [ct.c_void_p]
|
sdfr/__init__.py
CHANGED
sdfr/_commit_info.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__commit_date__ = "
|
|
2
|
-
__commit_id__ = "
|
|
1
|
+
__commit_date__ = "Wed Jun 4 23:52:44 2025 +0100"
|
|
2
|
+
__commit_id__ = "2a253d656c6c5be2d4ff1b7d0071155ef5f2f93c"
|
sdfr/libsdfc_shared.dylib
CHANGED
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
sdfr-1.4.1.dist-info/RECORD,,
|
|
2
|
+
sdfr-1.4.1.dist-info/WHEEL,sha256=rKVRZG47BwjO0BuVS9GGfWnnPLBRGGrauSgGKfHqTLw,111
|
|
3
|
+
sdfr-1.4.1.dist-info/METADATA,sha256=OpBhOHlMqYOw0H7MAMZDdSqIBvDHcfIzUPagTMoDz3U,370
|
|
4
|
+
sdfr-1.4.1.dist-info/licenses/LICENSE,sha256=Qu02Dqb67LYxdjaA0WVeZMwzcDFF_bSearhX7yzLCJQ,1621
|
|
5
|
+
sdfr-1.4.1.dist-info/licenses/LICENSE_README.txt,sha256=kU0OIq6O4_qqBwDWpJrPw2nNLWDCDI7oJGCe_JBF8j0,231
|
|
6
|
+
sdfr/_commit_info.py,sha256=8jlsRsmJqc0ANqAJ-eIW6DJEmb5w2krDmoZTPcojnhI,109
|
|
7
|
+
sdfr/sdf_helper.py,sha256=Fdod2nwFih-5h_Vpy2sq-sHPhAXOwKM-esfmQWGgbX4,61359
|
|
8
|
+
sdfr/__init__.py,sha256=nZLaiq81DjL97PgCXUGJ-qRDJ-KAJXN4qsJVEvSsAC8,1164
|
|
9
|
+
sdfr/SDF.py,sha256=zgCH3qGIuk3BFGkRHpE924wr_9YpmikGSxGnSKk_yxM,30176
|
|
10
|
+
sdfr/loadlib.py,sha256=dr5jYKAjAhW0jKCzudphV0D4e3-6lxAufsTVJHKYcZ8,2262
|
|
11
|
+
sdfr/libsdfc_shared.dylib,sha256=VOuGvDHHRMMmwI5aDqA4lTaOSzsGZENmtIlfIS1GADI,173176
|
sdfr-1.4.0.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
File without changes
|
|
File without changes
|