Commit 4a79fdfb authored by Shi Yan's avatar Shi Yan
Browse files

fixed a bug in create_pair_gaussian method in utils.py

parent abe7c4c4
...@@ -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