Commit d8f660bf by Corey Koval

Minor Adjustments

parent 702bcd24
...@@ -206,6 +206,7 @@ def do_dbscan(X): ...@@ -206,6 +206,7 @@ def do_dbscan(X):
# print("Starting process") # print("Starting process")
db = DBSCAN(eps=ms.eps, min_samples=ms.min_samp).fit(X) db = DBSCAN(eps=ms.eps, min_samples=ms.min_samp).fit(X)
DBSCAN_Q.put(db.labels_) DBSCAN_Q.put(db.labels_)
DBSCAN_Q.task_done()
# print("Finished Process") # print("Finished Process")
############################################### ###############################################
...@@ -1079,6 +1080,7 @@ def database_writer(): ...@@ -1079,6 +1080,7 @@ def database_writer():
command, items = DATABASE_EDIT_Q.get() command, items = DATABASE_EDIT_Q.get()
if command == "done": if command == "done":
conn.commit() conn.commit()
# DATABASE_EDIT_Q.task_done()
else: else:
c.execute(command, items) c.execute(command, items)
DATABASE_RETURN.put(True) DATABASE_RETURN.put(True)
...@@ -1177,4 +1179,5 @@ if __name__ == '__main__': ...@@ -1177,4 +1179,5 @@ if __name__ == '__main__':
time.sleep(1) time.sleep(1)
except KeyboardInterrupt: except KeyboardInterrupt:
dbwriter.join()
finish() finish()
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