drugforge.alchemy.predict.get_magnitude
- drugforge.alchemy.predict.get_magnitude(quantity: Quantity) float[source]
Convenience method to return the magnitude of an OpenFF unit quantity. This is useful in cases where data needs to be handled by libraries that are not able to parse pint-like quantities.
- Args:
quantity: The value to be transformed.
- Returns:
magnitude: The magnitude computed from the quantity.