#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 27 15:32:34 2019
Opening and processing microD scanned films.
@author: Pawel M. Kozlowski
"""
# python modules
import h5py as h5
# listing all functions declared in this file so that sphinx-automodapi
# correctly documents them and doesn't document imported functions.
__all__ = ["openFilm",
]
#%% functions
[docs]def openFilm(fileName):
"""
Opens HDF5 file film scan from microD.
"""
with h5.File(fileName, "r") as f:
stuff = f['pds_image'][...]
return stuff