tecio-python 0.3.3__py3-none-any.whl → 0.4.1__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.
- tecio/__init__.py +10 -3
- tecio/_dat_read.py +306 -45
- tecio/_dat_write.py +518 -153
- tecio/_io.py +147 -99
- tecio/_meta.py +42 -23
- tecio/_plt_legacy.py +408 -0
- tecio/_plt_read.py +456 -121
- tecio/_plt_write.py +446 -131
- tecio/_reader.py +387 -55
- tecio/_szl_read.py +124 -75
- tecio/_szl_write.py +304 -193
- tecio/_utils.py +69 -6
- tecio/_writer.py +1092 -216
- tecio/cli/tec2mat.py +70 -41
- tecio/cli/tecaux.py +90 -122
- tecio/cli/tecdump.py +45 -6
- tecio/cli/tecextract.py +105 -99
- tecio/cli/tecfix.py +62 -78
- tecio/cli/tecmerge.py +154 -95
- tecio/cli/teconvert.py +40 -52
- tecio/cli/tecscale.py +210 -122
- tecio/cli/tecslice.py +199 -156
- tecio/cli/tecstats.py +47 -43
- tecio/libtecio.py +117 -61
- tecio_python-0.3.3.data/data/share/plugins/matlab/fecplot.m → tecio_python-0.4.1.data/data/share/tecio/plugins/matlab/contourfe.m +3 -3
- tecio_python-0.4.1.data/data/share/tecio/plugins/matlab/tecmat2struct.m +137 -0
- {tecio_python-0.3.3.data/data/share → tecio_python-0.4.1.data/data/share/tecio}/plugins/paraview/TecplotTecioReader.py +463 -38
- tecio_python-0.4.1.data/data/share/tecio/plugins/paraview/TecplotTecioWriter.py +1026 -0
- {tecio_python-0.3.3.dist-info → tecio_python-0.4.1.dist-info}/METADATA +25 -9
- tecio_python-0.4.1.dist-info/RECORD +38 -0
- {tecio_python-0.3.3.dist-info → tecio_python-0.4.1.dist-info}/WHEEL +1 -1
- tecio_python-0.3.3.dist-info/RECORD +0 -35
- {tecio_python-0.3.3.dist-info → tecio_python-0.4.1.dist-info}/entry_points.txt +0 -0
- {tecio_python-0.3.3.dist-info → tecio_python-0.4.1.dist-info}/licenses/LICENSE +0 -0
- {tecio_python-0.3.3.dist-info → tecio_python-0.4.1.dist-info}/licenses/NOTICE +0 -0
- {tecio_python-0.3.3.dist-info → tecio_python-0.4.1.dist-info}/top_level.txt +0 -0
tecio/__init__.py
CHANGED
|
@@ -4,12 +4,14 @@ Wraps the TecIO C library for ``.szplt``, ``.plt``, and ``.dat`` formats.
|
|
|
4
4
|
Requires Python 3.10+, NumPy, and a Tecplot 360 installation.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
# ruff: noqa: A004
|
|
8
|
+
|
|
7
9
|
from importlib import metadata
|
|
8
10
|
|
|
9
11
|
try:
|
|
10
12
|
__version__ = metadata.version("tecio")
|
|
11
13
|
except metadata.PackageNotFoundError:
|
|
12
|
-
__version__ = "0.
|
|
14
|
+
__version__ = "0.4.1"
|
|
13
15
|
|
|
14
16
|
from . import cli, libtecio
|
|
15
17
|
from ._constants import (
|
|
@@ -48,13 +50,14 @@ from ._reader import (
|
|
|
48
50
|
TecplotAuxDataReader,
|
|
49
51
|
TecplotFEZoneReader,
|
|
50
52
|
TecplotOrderedZoneReader,
|
|
53
|
+
TecplotPolyZoneReader,
|
|
51
54
|
TecplotReader,
|
|
52
55
|
TecplotVariableReader,
|
|
53
56
|
TecplotZoneReader,
|
|
54
57
|
)
|
|
55
58
|
from ._szl_read import TecplotSzlReader
|
|
56
59
|
from ._szl_write import TecplotSzlWriter
|
|
57
|
-
from ._writer import TecplotWriter
|
|
60
|
+
from ._writer import EmptyZoneWarning, TecplotWriter
|
|
58
61
|
|
|
59
62
|
# Ensure these display as their canonical public name in docs and help(),
|
|
60
63
|
# rather than the private module they're actually defined in.
|
|
@@ -68,6 +71,7 @@ for _cls in (
|
|
|
68
71
|
TecplotZoneReader,
|
|
69
72
|
TecplotOrderedZoneReader,
|
|
70
73
|
TecplotFEZoneReader,
|
|
74
|
+
TecplotPolyZoneReader,
|
|
71
75
|
TecplotVariableReader,
|
|
72
76
|
TecplotAuxDataReader,
|
|
73
77
|
TecplotSzlReader,
|
|
@@ -77,6 +81,7 @@ for _cls in (
|
|
|
77
81
|
TecplotSzlWriter,
|
|
78
82
|
TecplotPltWriter,
|
|
79
83
|
TecplotDatWriter,
|
|
84
|
+
EmptyZoneWarning,
|
|
80
85
|
Boolean,
|
|
81
86
|
DataPacking,
|
|
82
87
|
DataType,
|
|
@@ -113,6 +118,7 @@ __all__ = [
|
|
|
113
118
|
"TecplotZoneReader",
|
|
114
119
|
"TecplotOrderedZoneReader",
|
|
115
120
|
"TecplotFEZoneReader",
|
|
121
|
+
"TecplotPolyZoneReader",
|
|
116
122
|
"TecplotVariableReader",
|
|
117
123
|
"TecplotAuxDataReader",
|
|
118
124
|
"TecplotSzlReader",
|
|
@@ -122,6 +128,7 @@ __all__ = [
|
|
|
122
128
|
"TecplotSzlWriter",
|
|
123
129
|
"TecplotPltWriter",
|
|
124
130
|
"TecplotDatWriter",
|
|
131
|
+
"EmptyZoneWarning",
|
|
125
132
|
"Boolean",
|
|
126
133
|
"DataPacking",
|
|
127
134
|
"DataType",
|
|
@@ -149,5 +156,5 @@ _STANDARD_MODULE_ATTRIBUTES = (
|
|
|
149
156
|
|
|
150
157
|
|
|
151
158
|
# Only public API visible to user
|
|
152
|
-
def __dir__() -> list:
|
|
159
|
+
def __dir__() -> list: # pragma: no cover
|
|
153
160
|
return sorted((*_STANDARD_MODULE_ATTRIBUTES, *__all__))
|