# Load MHA dataset

**URL:** <https://discourse.slicer.org/t/load-mha-dataset/23690>\
**Category:** Development\
**Created:** [June 3, 2022, 7:19am UTC](https://discourse.slicer.org/t/load-mha-dataset/23690 "2022-06-03T07:19:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakub\_Mitura](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jakub_mitura/32/8858_2.png) [@Jakub\_Mitura](https://discourse.slicer.org/u/Jakub_Mitura)\
**Post date:** [June 3, 2022, 7:19am UTC](https://discourse.slicer.org/t/load-mha-dataset/23690/1 "2022-06-03T07:19:47Z")

</div>

Hello I like the organization that slicer brings to the diceom dataset, and I would like to apply it to my MHA dataset programmatically. So What I would like to achieve (all programmatically - preferably python) :

1. given list of folder names add slicer node for each where each node represent single patient data
2. load volumes and add them to the nodes

```auto
loadedVolumeNode = slicer.util.loadVolume("/home/sliceruser/data/10000/10000_1000000_adc.mha")

```

and now somehow add loaded volume to the node - so all volumes of sinlge patient will be associated with this node  
3) be able to iterate over all nodes and volumes in python and load chosen into numpy or itk
