Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 2a27ef7d authored by usov_i's avatar usov_i
Browse files

Fix image update when no hkl are within the cut

parent cb8fc3f4
No related branches found
No related tags found
No related merge requests found
...@@ -147,6 +147,9 @@ def create(): ...@@ -147,6 +147,9 @@ def create():
# Find points within acceptable distance of plane defined by o_c # Find points within acceptable distance of plane defined by o_c
ind = np.where(abs(dist) < delta) ind = np.where(abs(dist) < delta)
if ind[0].size == 0:
image_source.data.update(image=[np.zeros((1, 1))])
return
# Project points onto axes # Project points onto axes
x = np.dot(x_c / np.sqrt(np.sum(x_c**2)), hkl_c) x = np.dot(x_c / np.sqrt(np.sum(x_c**2)), hkl_c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment