register_writer¶
-
astropy.io.registry.
register_writer
(data_format, data_class, function, force=False)[source]¶ Register a table writer function.
- Parameters
- data_formatstr
The data format identifier. This is the string that will be used to specify the data type when writing.
- data_classclassobj
The class of the object that can be written.
- functionfunction
The function to write out a data object.
- forcebool, optional
Whether to override any existing function if already present. Default is
False
.