Commit 28251769 authored by Lucas Beyer's avatar Lucas Beyer
Browse files

Merge pull request #12 from sqy12/master

fixed a bug in create_pair_gaussian method in utils.py
parents abe7c4c4 4a79fdfb
...@@ -55,7 +55,7 @@ def create_pairwise_gaussian(sdims, shape): ...@@ -55,7 +55,7 @@ def create_pairwise_gaussian(sdims, shape):
""" """
# create mesh # create mesh
hcord_range = [range(s) for s in shape] hcord_range = [range(s) for s in shape]
mesh = np.array(np.meshgrid(*cord_range, indexing='ij'), dtype=np.float32) mesh = np.array(np.meshgrid(*hcord_range, indexing='ij'), dtype=np.float32)
# scale mesh accordingly # scale mesh accordingly
for i, s in enumerate(sdims): for i, s in enumerate(sdims):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment