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.
Metadata
Release files for imodmodel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| imodmodel-0.1.0.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| imodmodel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / imodmodel-0.1.0.tar.gz
| Download URL | imodmodel-0.1.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dfa0b5db7b60716ad628d6c9c981427d0beaffd1a14fdcff65ac48032dfc714
|
|
BLAKE2b-256 checksum How to use checksums |
15243e44eabca3147421209d61028ed6ce5373c4b714390eaa3c9f9f9fa7bf5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / imodmodel-0.1.0-py3-none-any.whl
| Download URL | imodmodel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
846b6e2b3cdce4715da979b6576d241dba6d4ccbc5d8ef17d7c9ed576936b3fb
|
|
BLAKE2b-256 checksum How to use checksums |
795c7e0d40c1e406534755f7a2adb5382412e725a4fad9bdba690addc86cbb29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|