-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fill rois #577
base: master
Are you sure you want to change the base?
Fill rois #577
Conversation
NB: I'm away for holidays after tomorrow so it may be a while before I can look at this again... |
Conflicting PR. Removed from build OMERO-plugins-push#118. See the console output for more details.
--conflicts |
I've removed the |
Hi @will-moore Thanks for the feedback and the suggestion
It has been included in the gitignore I added the rounding with 2 decimales
No worries, enjoy your holidays !
OK Rémy |
@Rdornier This is looking pretty good now. I haven't tested the PDF/Tiff export yet. I seem to remember there were some issues there, which is why I removed the fillOpacity code from the ShapeEditor code when I ported it over. I'll give that a go anyway... |
Hi @will-moore
True, I have to check as well
I don't know if this is expected, probably not. But then, how can I use this output to test the save/export ?
Ok |
I've updated the Figure_to_pdf script acording to what I understood from the code and from what was missing to fit with the new feature. |
This is what I see:
It looks like the JS build worked OK. I guess you see the various assets under
|
Yes, I do.
It works, thanks. Now, I'm able to fully build and test |
@@ -771,7 +777,9 @@ def draw_ellipse(self, shape): | |||
# Draw outer ellipse, then remove inner ellipse with full opacity | |||
rgba = ShapeToPdfExport.get_rgba_int(shape['strokeColor']) | |||
ellipse_draw.ellipse((0, 0, width, height), fill=rgba) | |||
rgba = self.get_rgba_int(shape.get('fillColor', '#00000000')) | |||
r,g,b,a = self.get_rgba_int(shape.get('fillColor', '#00000000')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line (and others above) are causing flake8 build failures:
flake8.main.application MainProcess 652 INFO Found a total of 99 violations and reported 9
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:651:10: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:651:12: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:651:14: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:709:10: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:709:12: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:709:14: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:780:10: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:780:12: E231 missing whitespace after ','
./omero_figure/scripts/omero/figure_scripts/Figure_To_Pdf.py:780:14: E231 missing whitespace after ','
Conflicting PR. Removed from build OMERO-plugins-push#192. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#193. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#194. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#195. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#196. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#197. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#198. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#199. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#200. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#201. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#202. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#203. See the console output for more details.
|
Thanks for the updates on this and other PRs. Just a heads up that I'm pretty tied up over the next week or so - Afraid I might not get time to review etc for a bit... |
A couple of issues:
|
Hi @will-moore Thanks for your feedback.
Ok, I'll correct it
I think this is normal, as Point ROI doesn't have yet the methods to get fill etc. I'll add them.
Yes, it is the current behavior. I don't remember why I didn't read the opacity from OMERO. I'll check it. I'm a bit busy this and next week. So, I'll most probably do the corrections at the beginning of November. Rémy. |
Hi @will-moore , I fixed all the points you mentionned above. Rémy. |
Hello,
This PR should fiy the issue #485 about ROI filling.
If you load ROIs from OMERO, the fill-color is read correctly but not the transparency. I wasn't able to get it from the imported json object. So, the current transparency is set to the loaded ROI.
Rémy.