Skip to main content

A VTK interface for the Open Mining Format package

Project description

Documentation Status PyPI Build Status GitHub

A VTK interface for the Open Mining Format package (omf).

Example Use

Use the wraper provided in omfvtk to wrap any omf data object:

import omfvtk

omfvtk.wrap(data)

Here’s an example using the sample data hosted in the OMF repository.

import omf
import omfvtk

# Read all elements
reader = omf.OMFReader('test_file.omf')
project = reader.get_project()

# Iterate over the elements and add converted VTK objects to dictionary:
data = dict()
for e in project.elements:
    d = omfvtk.wrap(e)
    data[e.name] = d

Or better yet, just use the project loader:

import omfvtk
data = omfvtk.load_project('test_file.omf')

See omfvtk in Action

Be sure to check out the Example Notebook that demos omfvtk!

Credits

This package was created with Cookiecutter and the banesullivan/cookiecutter-gendocs project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omfvtk-0.0.3.tar.gz (5.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page