Skip to main content

IMOD models as pandas DataFrames

Project description

imodmodel

License PyPI Python Version CI codecov

IMOD model files as pandas dataframes in Python.

Installation

imodmodel can be installed from the Python Package Index (PyPI)

pip install imodmodel

We recommend installing into a clean virtual environment.

Usage

import imodmodel

df = imodmodel.read('my_model_file.mod')
In [3]: df.describe()
Out[3]: 
       object_id  contour_id           x           y       z
count       25.0   25.000000   25.000000   25.000000  25.000
mean         0.0    0.320000   65.413334   63.240001  73.280
std          0.0    0.476095   29.576687   28.116082   9.998
min          0.0    0.000000   10.666667    4.333333  59.000

That's it!

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

imodmodel-0.0.6.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

imodmodel-0.0.6-py2.py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 2 Python 3

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