Skip to content

Commit

Permalink
check for placement node that matches uri before creating one (#55)
Browse files Browse the repository at this point in the history
* check for placement node that matches uri before creating one

* add missing quotes, fix for py2

* remove f

* Fix coveralls on Python 3.6 (#52)

* Enable automated unit testing with Python 3.12 (#56)

* Fix coveralls on Python 3.6

* Enable automated unit testing with Python 3.12

* Only trigger a production PyPi build on tags using semantic versioning (#57)

* Use latest versions of GitHub workflow actions, build with Python 3.12 (#58)

* Enable automated unit testing for Python 3.5 (#59)

* Fix coveralls parallel builds (#61)

---------

Co-authored-by: Scott Small <scott.small@semaphoresolutions.ca>
  • Loading branch information
Joe Rickwalder and smallsco authored Jul 19, 2024
1 parent f47c5ca commit 1c88ace
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion s4/clarity/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,9 @@ def create_placement(self, artifact, container, well_string):
:param well_string: The location on the plate to place the artifact
"""
placement_root = self.xml_root.find("./output-placements")
placement_node = ETree.SubElement(placement_root, "output-placement", {"uri": artifact.uri})
placement_node = self.xml_root.find("./output-placements/output-placement[@uri='" + artifact.uri + "']")
if not placement_node:
placement_node = ETree.SubElement(placement_root, "output-placement", {"uri": artifact.uri})
location_subnode = ETree.SubElement(placement_node, "location")
ETree.SubElement(location_subnode, "container", {"uri": container.uri})
ETree.SubElement(location_subnode, "value").text = well_string
Expand Down

0 comments on commit 1c88ace

Please sign in to comment.