Skip to content

Commit

Permalink
fixed bug inside graphml_parser.py where labels were being incorrectl…
Browse files Browse the repository at this point in the history
…y labelled.
  • Loading branch information
dyumanaditya committed May 21, 2023
1 parent 70b7f96 commit fd06d49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyreason/scripts/utils/graphml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ def parse_graph_attributes(self, static_facts):
l_bnd = float(value)
u_bnd = 1
else:
l = l = f'{key}-{value}'
l = f'{key}-{value}'
l_bnd = 1
u_bnd = 1
if isinstance(value, str):
l = str(key)
bnd_str = value.split(',')
if len(bnd_str)==2:
try:
Expand All @@ -45,6 +44,7 @@ def parse_graph_attributes(self, static_facts):
if low<=1 and low>=0 and up<=1 and up>=0:
l_bnd = low
u_bnd = up
l = str(key)
except:
pass

Expand All @@ -61,11 +61,10 @@ def parse_graph_attributes(self, static_facts):
l_bnd = float(value)
u_bnd = 1
else:
l = l = f'{key}-{value}'
l = f'{key}-{value}'
l_bnd = 1
u_bnd = 1
if isinstance(value, str):
l = str(key)
bnd_str = value.split(',')
if len(bnd_str)==2:
try:
Expand All @@ -74,6 +73,7 @@ def parse_graph_attributes(self, static_facts):
if low<=1 and low>=0 and up<=1 and up>=0:
l_bnd = low
u_bnd = up
l = str(key)
except:
pass

Expand Down

0 comments on commit fd06d49

Please sign in to comment.