ercius / openNCEM

A collection of packages and tools for electron microscopy data analysis supported by the National Center for Electron Microscopy facility of the Molecular Foundry
GNU General Public License v3.0
60 stars 28 forks source link

Allow file object #36

Closed ercius closed 2 years ago

ercius commented 2 years ago

Allow user to input file object as an alternative to a file path. This uses "duck typing" to check if the file object has a read function. If it does then it uses that to read the file instead of opening the file.