Skip to content

Commit

Permalink
Question time
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensversluis committed Jul 29, 2016
1 parent a6b0514 commit f5b1699
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions catchment_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ def analysisFinish(self, output):
self.analysis_thread.quit()
self.analysis_thread.wait()
self.analysis_thread.deleteLater()
self.analysis.deleteLater()

# Closing the dialog
self.dlg.closeDialog()
Expand Down
5 changes: 4 additions & 1 deletion catchment_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,10 @@ def polygon_writer(self, catchment_points, distances, output_polygon, polygon_to
unique_origins_list = []
polygon_dict = {}
for tied_point in catchment_points:
# Kill check
if self.killed == True:
self.kill.emit(True)
break
name = catchment_points[tied_point]['name']
if name not in unique_origins_list:
polygon_dict[name] = {distance: [] for distance in distances}
Expand All @@ -666,7 +670,6 @@ def polygon_writer(self, catchment_points, distances, output_polygon, polygon_to
polygon_dict[name][distance].append(hull)
print len(polygon_dict[name][distance])


# Create list of hulls for each distance and each unique origin
index = 1
hull_validity = True
Expand Down

0 comments on commit f5b1699

Please sign in to comment.