-
Notifications
You must be signed in to change notification settings - Fork 45
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
Python3 #5
base: master
Are you sure you want to change the base?
Python3 #5
Conversation
When using this code with an mrxs file, I get following error:
The same slide test.mrxs is anonymized correctly with python 2 and the original anonymizing code. Does mrxs, svs and ndpi work for you? |
Thank you very much for your feedback @jetic83 ! Unfortunately, I have only had access to SVS files to test so far, and should have emphasized that my testing was therefore limited as such. I will look into this issue. At first glance, it does seem to require but a single line change at: anonymize-slide/anonymize-slide.py Line 257 in 759eecc
...but I would want to further test as well since there might be subsequent changes required after all. In the meantime, please feel free to add or suggest any modifications that you find helpful or necessary. |
Test data found at http://openslide.cs.cmu.edu/download/openslide-testdata/ and I have replicated your reported issue @jetic83 . Working on it now... UPDATE: looks like each of the MRXS file handles need to be wrapped in an |
@jetic83 - I have made a first pass update of the Python3 support for the MRXS format as well, in the above bb091b4 commit. It has only been tested with the |
Great, thx, I will check it out. In the meanwhile, is NDPI tested as well? |
While I haven't done anything specifically with NDPI, but if it is using |
There are test images on the openslide website here: https://openslide.org/formats/ventana/ see the bottom of the page. You can navigate to the other formats for their test images. Also wanted to let you know that I just submitted a similar PR, so we should probably coordinate our work. This update is definitely needed especially now that py2 is obsolete. |
@r3m0chop, @jetic83, I tested this script (just like the script of @markemus) with a couple of slides from my institute. I am testing the results with QuPath and 3DHistech Case Viewer where you can access the label images. In case of a successful anonymization the label image cannot be found and the macro image is cropped so the label is not visible anymore (in the original version of the script) or totally removed (in your python3 scripts). When I use the script on .ndpi files the anonymization works fine. The script did not work with .mrsx files (old format). An Error is encountered and the slides still contain the label. This is the output (anonymized slide names):
However, in the next days I will have access to .mrxs files in the new format and will report the results. |
No description provided.