From 12b39dae5c6af9f923ee824fd311f0d5d6849f02 Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Sun, 18 Dec 2011 12:27:33 -0500 Subject: [PATCH] Fix assert failure in example --- doc/examples/plot_template.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/examples/plot_template.py b/doc/examples/plot_template.py index 7894cdbc..861c6225 100644 --- a/doc/examples/plot_template.py +++ b/doc/examples/plot_template.py @@ -64,5 +64,6 @@ for i in range(50): if len(found_positions) == len(target_positions): break +found_positions = np.sort(found_positions) assert np.all(found_positions == target_positions)