Skip to content

Commit

Permalink
squash bug introduced by graph API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jabooth committed Apr 12, 2015
1 parent d684862 commit 3dac8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menpodetect/conversion.py
Expand Up @@ -21,7 +21,7 @@ def bounding_box(min_point, max_point):
bounding_box : :map:`PointDirectedGraph`
The axis aligned bounding box from the given points.
"""
return PointDirectedGraph(
return PointDirectedGraph.init_from_edges(
np.array([min_point, [max_point[0], min_point[1]],
max_point, [min_point[0], max_point[1]]]),
np.array([[0, 1], [1, 2], [2, 3], [3, 0]]), copy=False)

0 comments on commit 3dac8a5

Please sign in to comment.