This project has been archived by its maintainers, and is no longer receiving any updates.
OMF-VTK
A VTK interface for the Open Mining Format package (omf) providing Python 3D visualization.
Installation
Installation is simply:
pip install omfvtk
All necessary dependencies will be installed alongside omfvtk. Please note that this package heavily leverages the vtki package.
Example Use
Be sure to check out the Example Notebook that demos omfvtk! Here’s an example using the sample data hosted in the OMF repository.
import vtki
import omfvtk
project = omfvtk.load_project('test_file.omf')
project
Once the data is loaded as a vtki.MultiBlock dataset from omfvtk, then that object can be directly used for interactive 3D visualization from vtki:
project.plot(notebook=False)
Or an interactive scene can be created and manipulated to create a compelling figure directly in a Jupyter notebook. First, grab the elements from the project:
# Grab a few elements of interest and plot em up!
vol = project['Block Model']
assay = project['wolfpass_WP_assay']
topo = project['Topography']
dacite = project['Dacite']
Then apply a filtering tool from vtki to the volumetric data:
thresher = vtki.Threshold(vol, display_params={'show_edges':False})
Then you can put it all in one environment!
# Grab the active plotting window
# from the thresher tool
p = thresher.plotter
# Add our datasets
p.add_mesh(topo, cmap='gist_earth', show_edges=False, opacity=0.5)
p.add_mesh(assay, color='blue', line_width=3)
p.add_mesh(dacite, show_edges=False, color='yellow', opacity=0.6)
# Add the bounds axis
p.add_bounds_axes()
And once you like what the render view displays, you can save a screenshot:
p.screenshot('wolfpass.png')
Metadata
Release files for omfvtk 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omfvtk-0.0.9.tar.gz | 7.7 kB | Without provenance | Details for omfvtk-0.0.9.tar.gz |
Release files / omfvtk-0.0.9.tar.gz
| Download URL | omfvtk-0.0.9.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
912fb70bc272e96b76c90804a814996ecef4f297cf7f09250a20aa28022d4490
|
|
BLAKE2b-256 checksum How to use checksums |
498103d921317f1b01a4d051f0f5a1057e816d8777779af3bef11a2be81d4f3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.14
|
Security for omfvtk 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.