def read_voxel_size(path, micron=True):
    """Reads in the voxel size stored in `path` CSV file with voxel dimensions in nanometers

    :param path: path to CSV file containing integer values of voxel dimensions in nanometers
    :param micron: Flag to return nanometers or micron
    :return: voxel_size tuple in same order as in CSV
    """
    with open(path, mode='r') as f:
        line = f.readline().split('\n')[0]
    dims = line.split(',')
    voxel_size = tuple([int(d) / 1000 for d in dims])
    return voxel_size