Open haesleinhuepf opened 5 days ago
Really strange, it seems that the additional character is in the expected string
Number of characters in results: 2866
Number of characters in results: 2867
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
Cell In[6], line 1
----> 1 check(read_ome_metadata_from_ome_tiff)
Cell In[5], line 14, in check(candidate)
11 print(f"Number of characters in results: {len(ome_string_result)}")
12 print(f"Number of characters in results: {len(ome_string_expected)}")
---> 14 assert ome_string_result == ome_string_expected
AssertionError:
I will dig into it
found it, the code was reading "µm" as "µm" due to the missing utf-8 encoding. :) Easy fix, new version is coming in the next PR :)
Hi Riccardo @rmassei ,
in #142, this notebook doesn't work on my computer (the assert fails). There is a special character in the xml, which might be read differently on my Windows. I removed the notebook from your submission and if you can make it work again, a follow-up PR would be welcome.
read_ome_xml_from_ome_tiff.ipynb.txt
Error:
Thanks!
Best, Robert