FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit d3910db2 authored by Mark Driver's avatar Mark Driver
Browse files

update conversion to boolean location.

parent 8eca7011
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,7 @@ class OutputInformation(object):
similarity_output = output_xml.xpath(
xpath_expression, namespaces=PHASE_CALC_NAMESPACE_DICT
)[0]
similarity_output = True if similarity_output == "true" else False
if similarity_output:
type_xpath = "phasecalc:SimilarityOutput/@phasecalc:outputType"
similarity_output_type = output_xml.xpath(
......@@ -161,7 +162,6 @@ class OutputInformation(object):
)[0]
else:
similarity_output_type = None
similarity_output = True if similarity_output == "true" else False
return similarity_output, similarity_output_type
@classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment