Skip to content

Commit

Permalink
fix last call to missing dist function
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Oct 25, 2024
1 parent 3bd943a commit 1d23306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 53 deletions.
47 changes: 0 additions & 47 deletions .travis.yml

This file was deleted.

8 changes: 2 additions & 6 deletions pygridgen/boundary_interactor.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
try:
import cPickle as pickle
except ImportError:
import pickle
import pickle

from copy import deepcopy

import numpy as np
from numpy import dist
from matplotlib import pyplot
from matplotlib.artist import Artist
from matplotlib.patches import Polygon
Expand All @@ -33,7 +29,7 @@ def dist_point_to_segment(p, s0, s1):

c1 = np.dot(w, v)
if c1 <= 0:
return dist(p, s0)
return np.hypot(p, s0)

c2 = np.dot(v, v)
if c2 <= c1:
Expand Down

0 comments on commit 1d23306

Please sign in to comment.