write_mode_basis

hcipy.util.write_mode_basis(mode_basis, filename, fmt=None, overwrite=True)

Write a mode basis to a file.

Parameters:
mode_basisModeBasis

The mode basis to write to the file.

filenamestring

The path of the file you want to write to.

fmtstring

The file format. If it is not given, the file format will be guessed based on the file extension.

overwriteboolean

Whether to overwrite the file, if it already exists.

Raises:
NotImplementedError

If the file format was not yet implemented.