VTKio 0.1.0.dev2__tar.gz
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.
- vtkio-0.1.0.dev2/.gitignore +315 -0
- vtkio-0.1.0.dev2/CITATION.cff +30 -0
- vtkio-0.1.0.dev2/LICENSE +28 -0
- vtkio-0.1.0.dev2/PKG-INFO +86 -0
- vtkio-0.1.0.dev2/README.md +37 -0
- vtkio-0.1.0.dev2/examples/ImageData.py +250 -0
- vtkio-0.1.0.dev2/examples/PolyData.py +415 -0
- vtkio-0.1.0.dev2/examples/RectilinearData.py +267 -0
- vtkio-0.1.0.dev2/examples/StructuredGrid.py +442 -0
- vtkio-0.1.0.dev2/examples/UnstructuredGrid.py +381 -0
- vtkio-0.1.0.dev2/examples/benchmarking.py +74 -0
- vtkio-0.1.0.dev2/examples/read_vtk_files.py +83 -0
- vtkio-0.1.0.dev2/pyproject.toml +160 -0
- vtkio-0.1.0.dev2/src/vtkio/__init__.py +27 -0
- vtkio-0.1.0.dev2/src/vtkio/_git.py +45 -0
- vtkio-0.1.0.dev2/src/vtkio/helpers.py +110 -0
- vtkio-0.1.0.dev2/src/vtkio/reader/__init__.py +15 -0
- vtkio-0.1.0.dev2/src/vtkio/reader/hdf5.py +379 -0
- vtkio-0.1.0.dev2/src/vtkio/reader/xml.py +712 -0
- vtkio-0.1.0.dev2/src/vtkio/simplified.py +621 -0
- vtkio-0.1.0.dev2/src/vtkio/utilities.py +222 -0
- vtkio-0.1.0.dev2/src/vtkio/version.py +78 -0
- vtkio-0.1.0.dev2/src/vtkio/vtk_cell_types.py +98 -0
- vtkio-0.1.0.dev2/src/vtkio/vtk_structures.py +306 -0
- vtkio-0.1.0.dev2/src/vtkio/writer/__init__.py +16 -0
- vtkio-0.1.0.dev2/src/vtkio/writer/pvd_writer.py +132 -0
- vtkio-0.1.0.dev2/src/vtkio/writer/vtkhdf.py +1184 -0
- vtkio-0.1.0.dev2/src/vtkio/writer/writers.py +393 -0
- vtkio-0.1.0.dev2/src/vtkio/writer/xml_writer.py +1597 -0
- vtkio-0.1.0.dev2/tests/__init__.py +9 -0
- vtkio-0.1.0.dev2/tests/test_read_vtkhdf_vti.py +79 -0
- vtkio-0.1.0.dev2/tests/test_read_xml_vti.py +166 -0
- vtkio-0.1.0.dev2/tests/test_read_xml_vtp.py +265 -0
- vtkio-0.1.0.dev2/tests/test_read_xml_vtr.py +222 -0
- vtkio-0.1.0.dev2/tests/test_read_xml_vts.py +240 -0
- vtkio-0.1.0.dev2/tests/test_read_xml_vtu.py +274 -0
- vtkio-0.1.0.dev2/tests/test_vtkhdf_writer.py +353 -0
- vtkio-0.1.0.dev2/tests/test_write_vtkhdf_vts.py +108 -0
- vtkio-0.1.0.dev2/tests/test_write_xml_vti.py +517 -0
- vtkio-0.1.0.dev2/tests/test_write_xml_vtp.py +700 -0
- vtkio-0.1.0.dev2/tests/test_write_xml_vtr.py +654 -0
- vtkio-0.1.0.dev2/tests/test_write_xml_vts.py +972 -0
- vtkio-0.1.0.dev2/tests/test_write_xml_vtu.py +688 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
|
|
2
|
+
# Created by https://www.toptal.com/developers/gitignore/api/linux,python,windows,visualstudiocode,pycharm
|
|
3
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=linux,python,windows,visualstudiocode,pycharm
|
|
4
|
+
|
|
5
|
+
### Linux ###
|
|
6
|
+
*~
|
|
7
|
+
|
|
8
|
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
|
9
|
+
.fuse_hidden*
|
|
10
|
+
|
|
11
|
+
# KDE directory preferences
|
|
12
|
+
.directory
|
|
13
|
+
|
|
14
|
+
# Linux trash folder which might appear on any partition or disk
|
|
15
|
+
.Trash-*
|
|
16
|
+
|
|
17
|
+
# .nfs files are created when an open file is removed but is still being accessed
|
|
18
|
+
.nfs*
|
|
19
|
+
|
|
20
|
+
### PyCharm ###
|
|
21
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
22
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
23
|
+
|
|
24
|
+
# User-specific stuff
|
|
25
|
+
.idea/**/workspace.xml
|
|
26
|
+
.idea/**/tasks.xml
|
|
27
|
+
.idea/**/usage.statistics.xml
|
|
28
|
+
.idea/**/dictionaries
|
|
29
|
+
.idea/**/shelf
|
|
30
|
+
|
|
31
|
+
# AWS User-specific
|
|
32
|
+
.idea/**/aws.xml
|
|
33
|
+
|
|
34
|
+
# Generated files
|
|
35
|
+
.idea/**/contentModel.xml
|
|
36
|
+
|
|
37
|
+
# Sensitive or high-churn files
|
|
38
|
+
.idea/**/dataSources/
|
|
39
|
+
.idea/**/dataSources.ids
|
|
40
|
+
.idea/**/dataSources.local.xml
|
|
41
|
+
.idea/**/sqlDataSources.xml
|
|
42
|
+
.idea/**/dynamic.xml
|
|
43
|
+
.idea/**/uiDesigner.xml
|
|
44
|
+
.idea/**/dbnavigator.xml
|
|
45
|
+
|
|
46
|
+
# Gradle
|
|
47
|
+
.idea/**/gradle.xml
|
|
48
|
+
.idea/**/libraries
|
|
49
|
+
|
|
50
|
+
# Gradle and Maven with auto-import
|
|
51
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
52
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
|
53
|
+
# auto-import.
|
|
54
|
+
# .idea/artifacts
|
|
55
|
+
# .idea/compiler.xml
|
|
56
|
+
# .idea/jarRepositories.xml
|
|
57
|
+
.idea/modules.xml
|
|
58
|
+
# .idea/*.iml
|
|
59
|
+
.idea/modules
|
|
60
|
+
# *.iml
|
|
61
|
+
# *.ipr
|
|
62
|
+
|
|
63
|
+
# CMake
|
|
64
|
+
cmake-build-*/
|
|
65
|
+
|
|
66
|
+
# Mongo Explorer plugin
|
|
67
|
+
.idea/**/mongoSettings.xml
|
|
68
|
+
|
|
69
|
+
# File-based project format
|
|
70
|
+
*.iws
|
|
71
|
+
|
|
72
|
+
# IntelliJ
|
|
73
|
+
out/
|
|
74
|
+
|
|
75
|
+
# mpeltonen/sbt-idea plugin
|
|
76
|
+
.idea_modules/
|
|
77
|
+
|
|
78
|
+
# JIRA plugin
|
|
79
|
+
atlassian-ide-plugin.xml
|
|
80
|
+
|
|
81
|
+
# Cursive Clojure plugin
|
|
82
|
+
.idea/replstate.xml
|
|
83
|
+
|
|
84
|
+
# SonarLint plugin
|
|
85
|
+
.idea/sonarlint/
|
|
86
|
+
|
|
87
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
88
|
+
com_crashlytics_export_strings.xml
|
|
89
|
+
crashlytics.properties
|
|
90
|
+
crashlytics-build.properties
|
|
91
|
+
fabric.properties
|
|
92
|
+
|
|
93
|
+
# Editor-based Rest Client
|
|
94
|
+
.idea/httpRequests
|
|
95
|
+
|
|
96
|
+
# Android studio 3.1+ serialized cache file
|
|
97
|
+
.idea/caches/build_file_checksums.ser
|
|
98
|
+
|
|
99
|
+
### PyCharm Patch ###
|
|
100
|
+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
|
|
101
|
+
|
|
102
|
+
# *.iml
|
|
103
|
+
# modules.xml
|
|
104
|
+
# .idea/misc.xml
|
|
105
|
+
# *.ipr
|
|
106
|
+
|
|
107
|
+
# Sonarlint plugin
|
|
108
|
+
# https://plugins.jetbrains.com/plugin/7973-sonarlint
|
|
109
|
+
.idea/**/sonarlint/
|
|
110
|
+
|
|
111
|
+
# SonarQube Plugin
|
|
112
|
+
# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
|
|
113
|
+
.idea/**/sonarIssues.xml
|
|
114
|
+
|
|
115
|
+
# Markdown Navigator plugin
|
|
116
|
+
# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
|
|
117
|
+
.idea/**/markdown-navigator.xml
|
|
118
|
+
.idea/**/markdown-navigator-enh.xml
|
|
119
|
+
.idea/**/markdown-navigator/
|
|
120
|
+
|
|
121
|
+
# Cache file creation bug
|
|
122
|
+
# See https://youtrack.jetbrains.com/issue/JBR-2257
|
|
123
|
+
.idea/$CACHE_FILE$
|
|
124
|
+
|
|
125
|
+
# CodeStream plugin
|
|
126
|
+
# https://plugins.jetbrains.com/plugin/12206-codestream
|
|
127
|
+
.idea/codestream.xml
|
|
128
|
+
|
|
129
|
+
### Python ###
|
|
130
|
+
# Byte-compiled / optimized / DLL files
|
|
131
|
+
__pycache__/
|
|
132
|
+
*.py[cod]
|
|
133
|
+
*$py.class
|
|
134
|
+
|
|
135
|
+
# C extensions
|
|
136
|
+
*.so
|
|
137
|
+
|
|
138
|
+
# Distribution / packaging
|
|
139
|
+
.Python
|
|
140
|
+
build/
|
|
141
|
+
develop-eggs/
|
|
142
|
+
dist/
|
|
143
|
+
downloads/
|
|
144
|
+
eggs/
|
|
145
|
+
.eggs/
|
|
146
|
+
lib/
|
|
147
|
+
lib64/
|
|
148
|
+
parts/
|
|
149
|
+
sdist/
|
|
150
|
+
var/
|
|
151
|
+
wheels/
|
|
152
|
+
pip-wheel-metadata/
|
|
153
|
+
share/python-wheels/
|
|
154
|
+
*.egg-info/
|
|
155
|
+
.installed.cfg
|
|
156
|
+
*.egg
|
|
157
|
+
MANIFEST
|
|
158
|
+
|
|
159
|
+
# Jupyter
|
|
160
|
+
.ipynb_checkpoints/
|
|
161
|
+
|
|
162
|
+
# PyInstaller
|
|
163
|
+
# Usually these files are written by a python script from a template
|
|
164
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
165
|
+
*.manifest
|
|
166
|
+
*.spec
|
|
167
|
+
|
|
168
|
+
# Installer logs
|
|
169
|
+
pip-log.txt
|
|
170
|
+
pip-delete-this-directory.txt
|
|
171
|
+
|
|
172
|
+
# Unit test / coverage reports
|
|
173
|
+
htmlcov/
|
|
174
|
+
.tox/
|
|
175
|
+
.nox/
|
|
176
|
+
.coverage
|
|
177
|
+
.coverage.*
|
|
178
|
+
.cache
|
|
179
|
+
nosetests.xml
|
|
180
|
+
coverage.xml
|
|
181
|
+
*.cover
|
|
182
|
+
.hypothesis/
|
|
183
|
+
.pytest_cache/
|
|
184
|
+
|
|
185
|
+
# Translations
|
|
186
|
+
*.mo
|
|
187
|
+
*.pot
|
|
188
|
+
|
|
189
|
+
# Scrapy stuff:
|
|
190
|
+
.scrapy
|
|
191
|
+
|
|
192
|
+
# Sphinx documentation
|
|
193
|
+
docs/_build/
|
|
194
|
+
|
|
195
|
+
# PyBuilder
|
|
196
|
+
target/
|
|
197
|
+
|
|
198
|
+
# pyenv
|
|
199
|
+
.python-version
|
|
200
|
+
|
|
201
|
+
# pipenv
|
|
202
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
203
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
204
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
205
|
+
# install all needed dependencies.
|
|
206
|
+
#Pipfile.lock
|
|
207
|
+
|
|
208
|
+
# poetry
|
|
209
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
210
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
211
|
+
# commonly ignored for libraries.
|
|
212
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
213
|
+
#poetry.lock
|
|
214
|
+
|
|
215
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
216
|
+
__pypackages__/
|
|
217
|
+
|
|
218
|
+
# celery beat schedule file
|
|
219
|
+
celerybeat-schedule
|
|
220
|
+
|
|
221
|
+
# SageMath parsed files
|
|
222
|
+
*.sage.py
|
|
223
|
+
|
|
224
|
+
# Spyder project settings
|
|
225
|
+
.spyderproject
|
|
226
|
+
.spyproject
|
|
227
|
+
|
|
228
|
+
# Rope project settings
|
|
229
|
+
.ropeproject
|
|
230
|
+
|
|
231
|
+
# Mr Developer
|
|
232
|
+
.mr.developer.cfg
|
|
233
|
+
.project
|
|
234
|
+
.pydevproject
|
|
235
|
+
|
|
236
|
+
# mkdocs documentation
|
|
237
|
+
/site
|
|
238
|
+
|
|
239
|
+
# mypy
|
|
240
|
+
.mypy_cache/
|
|
241
|
+
.dmypy.json
|
|
242
|
+
dmypy.json
|
|
243
|
+
|
|
244
|
+
# Pyre type checker
|
|
245
|
+
.pyre/
|
|
246
|
+
|
|
247
|
+
# pytype static type analyzer
|
|
248
|
+
.pytype/
|
|
249
|
+
|
|
250
|
+
# Cython debug symbols
|
|
251
|
+
cython_debug/
|
|
252
|
+
|
|
253
|
+
# PyCharm
|
|
254
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
255
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
256
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
257
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
258
|
+
#.idea/
|
|
259
|
+
|
|
260
|
+
### VisualStudioCode ###
|
|
261
|
+
.vscode/*
|
|
262
|
+
!.vscode/settings.json
|
|
263
|
+
!.vscode/tasks.json
|
|
264
|
+
!.vscode/launch.json
|
|
265
|
+
!.vscode/extensions.json
|
|
266
|
+
!.vscode/*.code-snippets
|
|
267
|
+
|
|
268
|
+
# Local History for Visual Studio Code
|
|
269
|
+
.history/
|
|
270
|
+
|
|
271
|
+
# Built Visual Studio Code Extensions
|
|
272
|
+
*.vsix
|
|
273
|
+
|
|
274
|
+
### VisualStudioCode Patch ###
|
|
275
|
+
# Ignore all local history of files
|
|
276
|
+
.history
|
|
277
|
+
.ionide
|
|
278
|
+
|
|
279
|
+
### Windows ###
|
|
280
|
+
# Windows thumbnail cache files
|
|
281
|
+
Thumbs.db
|
|
282
|
+
Thumbs.db:encryptable
|
|
283
|
+
ehthumbs.db
|
|
284
|
+
ehthumbs_vista.db
|
|
285
|
+
|
|
286
|
+
# Dump file
|
|
287
|
+
*.stackdump
|
|
288
|
+
|
|
289
|
+
# Folder config file
|
|
290
|
+
[Dd]esktop.ini
|
|
291
|
+
|
|
292
|
+
# Recycle Bin used on file shares
|
|
293
|
+
$RECYCLE.BIN/
|
|
294
|
+
|
|
295
|
+
# Windows Installer files
|
|
296
|
+
*.cab
|
|
297
|
+
*.msi
|
|
298
|
+
*.msix
|
|
299
|
+
*.msm
|
|
300
|
+
*.msp
|
|
301
|
+
|
|
302
|
+
# Windows shortcuts
|
|
303
|
+
*.lnk
|
|
304
|
+
|
|
305
|
+
### Sync files ###
|
|
306
|
+
*.ffs_db
|
|
307
|
+
|
|
308
|
+
# End of https://www.gitignore.io/api/linux,python,windows,visualstudiocode
|
|
309
|
+
.idea/.gitignore
|
|
310
|
+
.idea/dictionaries
|
|
311
|
+
.idea/inspectionProfiles/
|
|
312
|
+
.idea/misc.xml
|
|
313
|
+
.idea/modules.xml
|
|
314
|
+
.idea/pyEDem.iml
|
|
315
|
+
.idea/vcs.xml
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This CITATION.cff file was generated with cffinit.
|
|
2
|
+
# Visit https://bit.ly/cffinit to generate yours today!
|
|
3
|
+
|
|
4
|
+
cff-version: 1.2.0
|
|
5
|
+
title: VTKio
|
|
6
|
+
message: >-
|
|
7
|
+
If you use this software, please cite it using the
|
|
8
|
+
metadata from this file.
|
|
9
|
+
type: software
|
|
10
|
+
authors:
|
|
11
|
+
- given-names: 'John '
|
|
12
|
+
family-names: Morrissey
|
|
13
|
+
email: morrissey.jp@gmail.com
|
|
14
|
+
orcid: 'https://orcid.org/0000-0002-2389-8146'
|
|
15
|
+
affiliation: University of Edinburgh
|
|
16
|
+
repository-code: 'https://www.github.com/vtkio'
|
|
17
|
+
url: 'https://docs'
|
|
18
|
+
abstract: >
|
|
19
|
+
VTKio is a python library for converting data between VTK
|
|
20
|
+
file formats (xml-based and hdf5-based) and numpy arrays.
|
|
21
|
+
keywords:
|
|
22
|
+
- Python
|
|
23
|
+
- NumPy
|
|
24
|
+
- VTK
|
|
25
|
+
- XML
|
|
26
|
+
- HDF5
|
|
27
|
+
- VTKHDF
|
|
28
|
+
license: BSD-3-Clause
|
|
29
|
+
version: 0.1.0
|
|
30
|
+
date-released: '2025-06-11'
|
vtkio-0.1.0.dev2/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021-2025, John Paul Morrissey. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: VTKio
|
|
3
|
+
Version: 0.1.0.dev2
|
|
4
|
+
Summary: A simple package for converting data between VTK files (XML and HDF5) and NumPy arrays.
|
|
5
|
+
Project-URL: Homepage, https://jpmorr.gitlab.io/vtkio
|
|
6
|
+
Project-URL: Documentation, https://jpmorr.gitlab.io/vtkio
|
|
7
|
+
Project-URL: Issues, https://gitlab.com/jpmorr/vtkio/-/issues
|
|
8
|
+
Project-URL: Source, https://gitlab.com/jpmorr/vtkio/-/tree/main
|
|
9
|
+
Project-URL: Changelog, https://gitlab.com/jpmorr/vtkio/-/tree/main
|
|
10
|
+
Project-URL: donate, https://ko-fi.com/jpmorr
|
|
11
|
+
Author-email: JP Morrissey <morrissey.jp@gmail.com>
|
|
12
|
+
Maintainer-email: JP Morrissey <morrissey.jp@gmail.com>
|
|
13
|
+
License-Expression: BSD-3-Clause
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Keywords: Converter,HDF5,NumPy,VTK,Visualisation,XML
|
|
16
|
+
Classifier: Development Status :: 4 - Beta
|
|
17
|
+
Classifier: Intended Audience :: Manufacturing
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering
|
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Requires-Dist: dotwiz>=0.4.0
|
|
31
|
+
Requires-Dist: h5py>=3.11
|
|
32
|
+
Requires-Dist: numpy>=2.1
|
|
33
|
+
Requires-Dist: pybase64>=1.3
|
|
34
|
+
Requires-Dist: xmltodict>=0.13
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
Requires-Dist: markdown-exec[ansi]>=1.10.3; extra == 'docs'
|
|
37
|
+
Requires-Dist: mkdocs-autorefs>=1.4.2; extra == 'docs'
|
|
38
|
+
Requires-Dist: mkdocs-git-committers-plugin-2>=2.5.0; extra == 'docs'
|
|
39
|
+
Requires-Dist: mkdocs-git-revision-date-localized-plugin>=1.4.7; extra == 'docs'
|
|
40
|
+
Requires-Dist: mkdocs-material-extensions>=1.3.1; extra == 'docs'
|
|
41
|
+
Requires-Dist: mkdocs-material[imaging]>=9.6.14; extra == 'docs'
|
|
42
|
+
Requires-Dist: mkdocs>=1.6.1; extra == 'docs'
|
|
43
|
+
Requires-Dist: mkdocstrings-python>=0.18; extra == 'docs'
|
|
44
|
+
Requires-Dist: mkdocstrings>=0.29.1; extra == 'docs'
|
|
45
|
+
Provides-Extra: tests
|
|
46
|
+
Requires-Dist: pytest-cov>=6.1.1; extra == 'tests'
|
|
47
|
+
Requires-Dist: pytest>=8.3.5; extra == 'tests'
|
|
48
|
+
Description-Content-Type: text/markdown
|
|
49
|
+
|
|
50
|
+
# VTKio
|
|
51
|
+
A simple python package for reading and writing Visualization Tool Kit (VTK) files.
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Supported features
|
|
56
|
+
Legacy ascii `.vtk` files are not supported and only the newer XML and HDF% based formats are supported.
|
|
57
|
+
|
|
58
|
+
XML files can be written in `ascii`, `base64` binary and appended `base64` binary formats.
|
|
59
|
+
The means all files remain valid `XML` documents.
|
|
60
|
+
|
|
61
|
+
XML and VTKHDF files can also be read using the associated file readers.
|
|
62
|
+
|
|
63
|
+
Data is returned in appropriate VTK classes with arrays stored in `numpy` formats.
|
|
64
|
+
|
|
65
|
+
> [!WARNING]
|
|
66
|
+
> VTKHDF files can only be opened in supported software. For example, ParaView has full VTKHDF
|
|
67
|
+
> support in 5.13 and above.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## VTK File Formats
|
|
71
|
+
All file formats have been developed based on VTK's [documentation](https://docs.vtk.org/en/latest/index.html) where
|
|
72
|
+
the [XML](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#xml-file-formats) formats and newer
|
|
73
|
+
[VTKHDF](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#vtkhdf-file-format) formats are described in detail.
|
|
74
|
+
Additional information can be found in [Chapter 5](https://book.vtk.org/en/latest/VTKBook/05Chapter5.html#) of the **VTK Book**.
|
|
75
|
+
|
|
76
|
+
Further information regarding the VTK data model can be found in the [ParaView documentation](https://docs.paraview.org/en/latest/UsersGuide/understandingData.html#vtk-data-model).
|
|
77
|
+
|
|
78
|
+
Example datafiles can be found for various filetypes at the [VTK Examples Repository](https://gitlab.kitware.com/vtk/vtk-examples/-/tree/master/src/Testing/Data?ref_type=heads).
|
|
79
|
+
|
|
80
|
+
For full documentation visit [jpmorr.gitlab.io](https://jpmorr.gitlab.io/vtkio).
|
|
81
|
+
|
|
82
|
+
## Related packages
|
|
83
|
+
|
|
84
|
+
- [PyEVTK](https://github.com/paulo-herrera/PyEVTK)
|
|
85
|
+
- [meshio](https://github.com/nschloe/meshio)
|
|
86
|
+
- [uvw](https://github.com/prs513rosewood/uvw)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# VTKio
|
|
2
|
+
A simple python package for reading and writing Visualization Tool Kit (VTK) files.
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Supported features
|
|
7
|
+
Legacy ascii `.vtk` files are not supported and only the newer XML and HDF% based formats are supported.
|
|
8
|
+
|
|
9
|
+
XML files can be written in `ascii`, `base64` binary and appended `base64` binary formats.
|
|
10
|
+
The means all files remain valid `XML` documents.
|
|
11
|
+
|
|
12
|
+
XML and VTKHDF files can also be read using the associated file readers.
|
|
13
|
+
|
|
14
|
+
Data is returned in appropriate VTK classes with arrays stored in `numpy` formats.
|
|
15
|
+
|
|
16
|
+
> [!WARNING]
|
|
17
|
+
> VTKHDF files can only be opened in supported software. For example, ParaView has full VTKHDF
|
|
18
|
+
> support in 5.13 and above.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## VTK File Formats
|
|
22
|
+
All file formats have been developed based on VTK's [documentation](https://docs.vtk.org/en/latest/index.html) where
|
|
23
|
+
the [XML](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#xml-file-formats) formats and newer
|
|
24
|
+
[VTKHDF](https://docs.vtk.org/en/latest/design_documents/VTKFileFormats.html#vtkhdf-file-format) formats are described in detail.
|
|
25
|
+
Additional information can be found in [Chapter 5](https://book.vtk.org/en/latest/VTKBook/05Chapter5.html#) of the **VTK Book**.
|
|
26
|
+
|
|
27
|
+
Further information regarding the VTK data model can be found in the [ParaView documentation](https://docs.paraview.org/en/latest/UsersGuide/understandingData.html#vtk-data-model).
|
|
28
|
+
|
|
29
|
+
Example datafiles can be found for various filetypes at the [VTK Examples Repository](https://gitlab.kitware.com/vtk/vtk-examples/-/tree/master/src/Testing/Data?ref_type=heads).
|
|
30
|
+
|
|
31
|
+
For full documentation visit [jpmorr.gitlab.io](https://jpmorr.gitlab.io/vtkio).
|
|
32
|
+
|
|
33
|
+
## Related packages
|
|
34
|
+
|
|
35
|
+
- [PyEVTK](https://github.com/paulo-herrera/PyEVTK)
|
|
36
|
+
- [meshio](https://github.com/nschloe/meshio)
|
|
37
|
+
- [uvw](https://github.com/prs513rosewood/uvw)
|