subsurface-terra 2025.1.0rc6__py3-none-any.whl → 2025.1.0rc7__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.
- subsurface/_version.py +1 -1
- subsurface/modules/reader/mesh/dxf_reader.py +10 -3
- {subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/METADATA +1 -1
- {subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/RECORD +7 -7
- {subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/WHEEL +1 -1
- {subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/licenses/LICENSE +0 -0
- {subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/top_level.txt +0 -0
subsurface/_version.py
CHANGED
|
@@ -59,7 +59,7 @@ def dxf_file_to_unstruct_input(
|
|
|
59
59
|
"""
|
|
60
60
|
ezdxf = optional_requirements.require_ezdxf()
|
|
61
61
|
dataset = ezdxf.readfile(file)
|
|
62
|
-
|
|
62
|
+
vertex, cells, cell_attr_int, cell_attr_map = _dxf_dataset_to_unstruct_input(dataset)
|
|
63
63
|
|
|
64
64
|
if vertex.size == 0:
|
|
65
65
|
raise ValueError("The DXF file does not contain any 3DFACE entities.")
|
|
@@ -124,7 +124,14 @@ def _extract_vertices_from_dataset(
|
|
|
124
124
|
return np.unique(vertices, axis=0)
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
def _dxf_dataset_to_unstruct_input(dataset):
|
|
127
|
+
def _dxf_dataset_to_unstruct_input(dataset: 'ezdxf.drawing.Drawing') -> tuple[np.ndarray, np.ndarray, np.ndarray, dict]:
|
|
128
|
+
"""
|
|
129
|
+
Build unstructured-mesh-like data from 3DFACE entities in a dataset:
|
|
130
|
+
- vertex coordinates
|
|
131
|
+
- connectivity in 'cells' array
|
|
132
|
+
- cell attributes in both integer-coded and mapping (string->int) forms
|
|
133
|
+
|
|
134
|
+
"""
|
|
128
135
|
"""
|
|
129
136
|
Build unstructured-mesh-like data from 3DFACE entities in a dataset:
|
|
130
137
|
- vertex coordinates
|
|
@@ -167,4 +174,4 @@ def _dxf_dataset_to_unstruct_input(dataset):
|
|
|
167
174
|
cells = np.arange(0, vertices.shape[0]).reshape(-1, 3)
|
|
168
175
|
|
|
169
176
|
cell_attr_int, cell_attr_map = _map_cell_attr_strings_to_integers(cell_attr)
|
|
170
|
-
return
|
|
177
|
+
return vertices, cells, cell_attr_int, cell_attr_map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: subsurface_terra
|
|
3
|
-
Version: 2025.1.
|
|
3
|
+
Version: 2025.1.0rc7
|
|
4
4
|
Summary: Subsurface data types and utilities. This version is the one used by Terranigma Solutions. Please feel free to take anything in this repository for the original one.
|
|
5
5
|
Home-page: https://softwareunderground.github.io/subsurface
|
|
6
6
|
Author: Software Underground
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
subsurface/__init__.py,sha256=0D2rCUem3fiHsXFXXSmwheLiPS4cXxEdfWdFBj0b-cY,930
|
|
2
|
-
subsurface/_version.py,sha256=
|
|
2
|
+
subsurface/_version.py,sha256=SudUzgQuG7m0d1waiGLEVcfEklQt-vkrNoj5cLAIYoU,541
|
|
3
3
|
subsurface/optional_requirements.py,sha256=Wg36RqxzPiLtN-3qSg5K9QVEeXCB0-EjSzHERAoO8EE,2883
|
|
4
4
|
subsurface/api/__init__.py,sha256=DUc2LzlVtWjsGyZAyiJY4yxBRTGb-w8kcuAA5ag1s0M,285
|
|
5
5
|
subsurface/api/interfaces/__init__.py,sha256=rqUtJyMLicobcyhmr74TepjmUQAEmlazKT3vjV_n3aA,6
|
|
@@ -47,7 +47,7 @@ subsurface/modules/reader/mesh/_GOCAD_mesh.py,sha256=_MwNy4iVMGnemvT01hhB-nbCc8a
|
|
|
47
47
|
subsurface/modules/reader/mesh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
48
|
subsurface/modules/reader/mesh/_trimesh_reader.py,sha256=DMRWZg_amcse9kDB-OdI72ZhUVzQdPJwUPi8AQLpr90,8232
|
|
49
49
|
subsurface/modules/reader/mesh/csv_mesh_reader.py,sha256=0iXYg-JOLUg7yH6Rw6qCoxXvKh0hOUTwjYxbhSlGfGM,1969
|
|
50
|
-
subsurface/modules/reader/mesh/dxf_reader.py,sha256=
|
|
50
|
+
subsurface/modules/reader/mesh/dxf_reader.py,sha256=JDhzFRE46sdwMGBB8enHNluH07ohqt6LhgLHiSQRL-I,6525
|
|
51
51
|
subsurface/modules/reader/mesh/glb_reader.py,sha256=9UJiq-YAwZcoiC8Pd8w2iru-GSvOvbb-CUBC47mcrpA,975
|
|
52
52
|
subsurface/modules/reader/mesh/mx_reader.py,sha256=o1OPnGSSOjJCpLCzazRsmjhFxhbYrCi6zTTRnKtCJ30,8419
|
|
53
53
|
subsurface/modules/reader/mesh/obj_reader.py,sha256=srrCYPygqndEOOIbv6vf6jUftBQ0IY9i9vtmUHEZWuk,1681
|
|
@@ -86,8 +86,8 @@ subsurface/modules/writer/to_rex/material_encoder.py,sha256=zGlqF9X_Civ9VvtGwo-I
|
|
|
86
86
|
subsurface/modules/writer/to_rex/mesh_encoder.py,sha256=6TBtJhYJEAMEBHxQkbweXrJO1jIUx1ClM8l5ajVCrLc,6443
|
|
87
87
|
subsurface/modules/writer/to_rex/to_rex.py,sha256=njsm2d3e69pRVfF_TOC_hexvXPmgNTZdJvhbnXcvyIo,3800
|
|
88
88
|
subsurface/modules/writer/to_rex/utils.py,sha256=HEpJ95LjHOK24ePpmLpPP5uFyv6i_kN3AWh031q-1Uc,379
|
|
89
|
-
subsurface_terra-2025.1.
|
|
90
|
-
subsurface_terra-2025.1.
|
|
91
|
-
subsurface_terra-2025.1.
|
|
92
|
-
subsurface_terra-2025.1.
|
|
93
|
-
subsurface_terra-2025.1.
|
|
89
|
+
subsurface_terra-2025.1.0rc7.dist-info/licenses/LICENSE,sha256=GSXh9K5TZauM89BeGbYg07oST_HMhOTiZoEGaUeKBtA,11606
|
|
90
|
+
subsurface_terra-2025.1.0rc7.dist-info/METADATA,sha256=Mkf-RKKa_AWVljSLXC2HwEhaDVcDBNH7t3zoj5jLB2w,7093
|
|
91
|
+
subsurface_terra-2025.1.0rc7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
92
|
+
subsurface_terra-2025.1.0rc7.dist-info/top_level.txt,sha256=f32R_tUSf83CfkpB4vjv5m2XcD8TmDX9h7F4rnEXt5A,11
|
|
93
|
+
subsurface_terra-2025.1.0rc7.dist-info/RECORD,,
|
{subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{subsurface_terra-2025.1.0rc6.dist-info → subsurface_terra-2025.1.0rc7.dist-info}/top_level.txt
RENAMED
|
File without changes
|