skbio.util.assert_ordination_results_equal#

skbio.util.assert_ordination_results_equal(left, right, ignore_method_names=False, ignore_axis_labels=False, ignore_directionality=False, decimal=7)[source]#

Assert that ordination results objects are equal.

This is a helper function intended to be used in unit tests that need to compare OrdinationResults objects.

Parameters:
left, rightOrdinationResults

Ordination results to be compared for equality.

ignore_method_namesbool, optional

Ignore differences in short_method_name and long_method_name.

ignore_axis_labelsbool, optional

Ignore differences in axis labels (i.e., column labels).

ignore_directionalitybool, optional

Ignore differences in directionality (i.e., differences in signs) for attributes samples, features and biplot_scores.

decimalint, optional

Number of decimal places to compare when checking numerical values. Defaults to 7.

Raises:
AssertionError

If the two objects are not equal.