robust_int

biophysics_fitting.optimizer.robust_int(x)

Robustly convert something to an integer.

Returns None if the conversion is not possible.

Parameters:
x

The object to be converted.

Returns:

The converted object.

Return type:

int | None