Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
autoMARCO windows for subwells can all be displayed at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
LP-CDF committed Jan 31, 2020
1 parent f5ac1a8 commit 891dc3a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
26 changes: 15 additions & 11 deletions AMi_Image_Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
import preferences as pref


__version__ = "1.1.9"
__version__ = "1.1.10"
__author__ = "Ludovic Pecqueur (ludovic.pecqueur \at college-de-france.fr)"
__date__ = "29-01-2020"
__date__ = "31-01-2020"
__license__ = "New BSD http://www.opensource.org/licenses/bsd-license.php"


Expand Down Expand Up @@ -100,6 +100,9 @@ def __init__(self, parent=None):
self.view.setDragMode(QtWidgets.QGraphicsView.ScrollHandDrag)
self.view.wheelEvent = self.wheel_event
self.ImageViewer.setWidget(self.view)

#To see all autoMARCO results windows create a dict subwell:object
self.MARCO_window={}

self.initUI()

Expand Down Expand Up @@ -130,24 +133,25 @@ def show_autoMARCO(self, subwell):
return

autoMARCO_data=[]

for line in data:
autoMARCO_data.append(line.split())

#delete HEADER from list
del autoMARCO_data[0]

self.MARCO_window = MARCO_Results()
self.MARCO_window.subwell=subwell
self.MARCO_window.setWindowTitle("autoMARCO results for subwell %s"%subwell)
self.MARCO_window.autoMARCO_data=autoMARCO_data
self.MARCO_window[subwell] = MARCO_Results()
self.MARCO_window[subwell].subwell=subwell
self.MARCO_window[subwell].setWindowTitle("autoMARCO results for subwell %s"%subwell)
self.MARCO_window[subwell].autoMARCO_data=autoMARCO_data

#Define Legend
self.MARCO_window.label_Crystal.setStyleSheet("""background-color:rgb(0, 255, 0)""")
self.MARCO_window.label_Other.setStyleSheet("""background-color:rgb(255, 0, 255); color:rgb(255, 255, 255)""")
self.MARCO_window.label_Precipitate.setStyleSheet("""background-color:rgb(255, 0, 0); color:rgb(255, 255, 255)""")
self.MARCO_window.label_Clear.setStyleSheet("""background-color:rgb(0, 0, 0); color:rgb(255, 255, 255)""")
self.MARCO_window[subwell].label_Crystal.setStyleSheet("""background-color:rgb(0, 255, 0)""")
self.MARCO_window[subwell].label_Other.setStyleSheet("""background-color:rgb(255, 0, 255); color:rgb(255, 255, 255)""")
self.MARCO_window[subwell].label_Precipitate.setStyleSheet("""background-color:rgb(255, 0, 0); color:rgb(255, 255, 255)""")
self.MARCO_window[subwell].label_Clear.setStyleSheet("""background-color:rgb(0, 0, 0); color:rgb(255, 255, 255)""")

self.MARCO_window.show()
self.MARCO_window[subwell].show()
del autoMARCO_data


Expand Down
3 changes: 2 additions & 1 deletion autocrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ def find_best_circle(image):
print('''
%s file(s) were not processed.
For more information check log file %s
you can use the tool Check_Circle_detection.py filename to check
You can use the tool Check_Circle_detection.py filename to check
'''%(errors, log))

0 comments on commit 891dc3a

Please sign in to comment.