Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Dec 15, 2019
1 parent 51a7dfc commit 3d10dbd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**Features**:

+ None
+ Fix the bug of synthesizing assortment.

**Development**:

Expand Down
3 changes: 1 addition & 2 deletions pyslvs_ui/synthesis/dimensional_synthesis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def __able_to_generate(self) -> None:
@Slot(name='on_synthesis_button_clicked')
def __synthesis(self) -> None:
"""Start synthesis."""
# Check if the number of target points are same.
# Check if the amount of the target points are same.
length = -1
for path in self.path.values():
if length < 0:
Expand All @@ -432,7 +432,6 @@ def __synthesis(self) -> None:
break
else:
raise ValueError("no option")
# Deep copy it so the pointer will not the same
mech = deepcopy(self.mech)
mech['expression'] = parse_vpoints(mech.pop('expression', []))
mech['target'] = deepcopy(self.path)
Expand Down
2 changes: 0 additions & 2 deletions pyslvs_ui/synthesis/structure_synthesis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ def __structure_synthesis(self) -> None:
if item is None:
self.__number_synthesis()
item = self.link_assortment_list.currentItem()

root = item.parent()
if root is None:
# Find by link assortment
Expand All @@ -301,7 +300,6 @@ def __structure_synthesis(self) -> None:
except ValueError:
return
jobs = [item.child(i) for i in range(item.childCount())]
self.__structural_combine(jobs)
else:
# Find by contracted link assortment
jobs = [item]
Expand Down

0 comments on commit 3d10dbd

Please sign in to comment.