Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #115 from BodenmillerGroup/omexml-fix
Browse files Browse the repository at this point in the history
Fix OME-XML element order (closes #114)
  • Loading branch information
plankter authored Sep 12, 2021
2 parents 7eb9ed6 + e570e90 commit f034057
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imctools/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def get_ome_xml(

if acquisition_date is not None:
image_element = element_tree.find("./Image")
ET.SubElement(image_element, "AcquisitionDate").text = acquisition_date
acquisition_date_element = ET.Element("AcquisitionDate")
acquisition_date_element.text = acquisition_date
image_element.insert(0, acquisition_date_element)

if channel_fluors is not None:
assert len(channel_fluors) == size_c
Expand Down

0 comments on commit f034057

Please sign in to comment.