Skip to content

Commit

Permalink
Merge pull request #3 from sysbio-curie/fix/path_type
Browse files Browse the repository at this point in the history
Forcing a string for parse argument
  • Loading branch information
rheiland committed Mar 27, 2020
2 parents 6ad2dc0 + 144126a commit 20323ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/substrates.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def update(self, rdir=''):
# self.modulo = int((self.num_svgs - 1) / (self.num_substrates - 1))
# print("substrates: update(): modulo=",self.modulo)
if full_xml_filename.is_file():
tree = ET.parse(full_xml_filename) # this file cannot be overwritten; part of tool distro
tree = ET.parse(str(full_xml_filename)) # this file cannot be overwritten; part of tool distro
xml_root = tree.getroot()
self.svg_delta_t = int(xml_root.find(".//SVG//interval").text)
self.substrate_delta_t = int(xml_root.find(".//full_data//interval").text)
Expand Down

0 comments on commit 20323ee

Please sign in to comment.