import warnings


def value(self):
    """DEPRECATED"""
    warnings.warn(
        "The FitVal class has been depreacted and replaced with UFloat "
        "objects, use .nominal_value or .n to access the equivalent of "
        "the FitVal.value property",
        DeprecationWarning,
        stacklevel=2,
    )
    # deprecation warning
    return self.nominal_value