pearu/iocbio

Unit conversion issue with iocbio.io

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Open image stack captured with iocbio microscope software:
from iocbio.io import load_image_stack  
full_images, full_pathinfo  = load_image_stack('configuration.txt')

2. Get voxel sizes from pathinfo object:
voxel_sizes = full_pathinfo.get_voxel_sizes()

3. Observe that these voxel sizes are in m when the configuration.txt 
clearly specifies that the units are in um.

What is the expected output? What do you see instead?
Units in m, but should retain the original um.

What version of the product are you using? On what operating system?
Latest svn version on ubuntu AMD64.

Please provide any additional information below.
This method should at least specify what the unit of the voxel size is in any 
of a number of ways:
1). Change to get_voxel_size_m
2). Add another method get_voxel_unit
3). Return the unit along with the value in get_voxel_size

Note: set_voxel_size should also support a unit keyword then.

Original issue reported on code.google.com by schr...@gmail.com on 18 Jun 2010 at 6:41