IMOD model files as pandas DataFrames in Python.
Project description
imodmodel
Read and write IMOD model files as pandas dataframes in Python.
Usage
Read IMOD models as pandas DataFrame
import imodmodel
df = imodmodel.read('my_model_file.mod')
In [3]: df.head()
Out[3]:
object_id contour_id x y z
0 0 0 64.333336 64.666664 80.0
1 0 0 47.000000 77.333336 80.0
2 0 0 51.333332 45.666668 80.0
3 0 0 87.333336 49.666668 80.0
4 0 0 76.000000 82.000000 80.0
Write IMOD models from a pandas DataFrame
imodmodel.write(df, 'my_new_modelfile.mod')
For more advanced use cases we also provide an object-based API. Please consult our Documentation.
Installation
imodmodel
can be installed from the Python Package Index (PyPI)
pip install imodmodel
We recommend installing into a clean virtual environment.
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(1.2 MB
view details)
Built Distribution
imodmodel-0.1.0-py3-none-any.whl
(13.2 kB
view details)
File details
Details for the file imodmodel-0.1.0.tar.gz
.
File metadata
- Download URL: imodmodel-0.1.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2dfa0b5db7b60716ad628d6c9c981427d0beaffd1a14fdcff65ac48032dfc714
|
|
MD5 |
e22ea883348f2f1dd1e4cd76be9faa7d
|
|
BLAKE2b-256 |
15243e44eabca3147421209d61028ed6ce5373c4b714390eaa3c9f9f9fa7bf5b
|
File details
Details for the file imodmodel-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: imodmodel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
846b6e2b3cdce4715da979b6576d241dba6d4ccbc5d8ef17d7c9ed576936b3fb
|
|
MD5 |
e23feb127e3e242f9e8278f5ce3a93cd
|
|
BLAKE2b-256 |
795c7e0d40c1e406534755f7a2adb5382412e725a4fad9bdba690addc86cbb29
|