Skip to content

Commit

Permalink
Version 0.1.0 (see release)
Browse files Browse the repository at this point in the history
  • Loading branch information
jond01 committed Apr 12, 2020
1 parent c4135d2 commit 0137a19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ This package unifies the io engines of itk, nibabel, and pydicom packages in a s
It includes translation between the metadata conventions, reorientations, affine matrix computation.

# Installation
Download the [whl file](https://gitlab.com/rsip/medio/uploads/1e35cbb2e7b2c3206a42fe2cf1946f36/medio-0.0.1-py3-none-any.whl)
Download the [whl file](https://drive.google.com/file/d/1slbkF2zk3vZmm6lHbXEfDDzP1ZUpIAg4/view?usp=sharing)
and install it with:
```
(<env-name>) C:\Users\<username>\Downloads>pip install medio-<m1>.<m2>.<m3>-py3-none-any.whl
(<env-name>) C:\Users\<username>\Downloads>pip install medio-0.1.0-py3-none-any.whl
```
This will install the medio python package and its dependencies in your environment.

Expand All @@ -19,16 +19,15 @@ The dependencies are:
- itk (itk-io, itk-filtering)
- nibabel
- pydicom + dicom-numpy
- (Optional: SimpleITK)


A conda environment yml is in the project's root.

# Usage
There are 3 main functions in medio: `read_img`, `save_img` and `save_dir`.
```python
>>> from medio import read_img, save_img
>>> # read a dicom series from a folder
>>> img_arr, metadata = read_img('data/dicom-folder/', desired_ornt='IAR')
>>> # do your stuff and save in any format
>>> save_img('ct.nii.gz', img_arr, metadata, backend='nib')
from medio import read_img, save_img
# read a dicom series from a folder
img_arr, metadata = read_img('data/dicom-folder/', desired_ornt='IAR')
# do your stuff and save in any format
save_img('ct.nii.gz', img_arr, metadata, backend='nib')
```
2 changes: 1 addition & 1 deletion medio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from medio.read_save import read_img, save_img, save_dir
from medio import backends, metadata, utils, medimg

__version__ = '0.0.1'
__version__ = '0.1.0'

__all__ = ['read_img', 'save_img', 'save_dir', '__version__']

0 comments on commit 0137a19

Please sign in to comment.