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