to_signed

sunpy.util.to_signed(dtype)[source] [edit on github]

Return dtype that can hold data of passed dtype but is signed. Raise ValueError if no such dtype exists.

Parameters:dtype (numpy.dtype) – dtype whose values the new dtype needs to be able to represent.
Returns:numpy.dtype