Skip to content

Commit

Permalink
fixed structure_designer
Browse files Browse the repository at this point in the history
  • Loading branch information
freude committed Jul 5, 2020
1 parent 1f9b198 commit d699d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanonet/tb/structure_designer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _sort(self, labels, coords):
self.reorder = indices
if isinstance(self.left_lead, list) or isinstance(self.left_lead, np.ndarray) and len(self.left_lead) > 0:
self.left_lead = np.squeeze(np.concatenate([np.where(indices == item) for item in self.left_lead]))
if isinstance(self.right_lead, list) or isinstance(self.right_lead, np.ndarray) and len(self.left_lead) > 0:
if isinstance(self.right_lead, list) or isinstance(self.right_lead, np.ndarray) and len(self.right_lead) > 0:
self.right_lead = np.squeeze(np.concatenate([np.where(indices == item) for item in self.right_lead]))
coords = coords[indices]
labels = [labels[i] for i in indices]
Expand Down

0 comments on commit d699d93

Please sign in to comment.