get_format

astropy.units.format.get_format(format=None)[source]

Get a formatter by name.

Parameters:
formatpython:str or astropy.units.format.Base instance or subclass

The name of the format, or the format instance or subclass itself.

Returns:
formatastropy.units.format.Base instance

The requested formatter.