read_mode_basis
- hcipy.util.read_mode_basis(filename, fmt=None)
Read a mode basis from a file.
- Parameters:
- filenamestring
The path of the file you want to read the mode basis from.
- fmtstring
The file format. If it is not given, the file format will be guessed from the file extension.
- Returns:
- ModeBasis
The read mode basis.
- Raises:
- ValueError
If the file format could not be guessed from the file extension.
- NotImplementedError
If the file format was not yet implemented.