Skip to content

Commit

Permalink
fixed errors in summary and improved format
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrozum committed Jan 12, 2024
1 parent 6f965bc commit add3dc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion balm/succession_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def summary(self) -> str:
attrs = self.node_attractor_seeds(node, compute=False)
except KeyError:
continue
if not attrs:
continue

space = self.node_space(node)

Expand All @@ -211,7 +213,7 @@ def summary(self) -> str:
attr_str = "".join(str(v) for _, v in sorted(attr.items()))
report_string += "." * len(space_str_prefix) + f"{attr_str}\n"
report_string += "\n"
return report_string
return report_string.rstrip() + "\n"

def root(self) -> int:
"""
Expand Down

1 comment on commit add3dc7

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
balm
   control.py1191389%48, 57, 61, 67, 81, 90–106, 320, 335
   interaction_graph_utils.py57689%6–7, 44, 57, 82–83
   motif_avoidant.py164597%24–25, 131, 185, 310
   petri_net_translation.py84693%23–24, 52, 63–64, 94
   pyeda_utils.py963564%12–13, 57–67, 91, 96, 99–113, 141–145
   space_utils.py1471590%15–17, 179–193, 220, 235, 292
   state_utils.py691283%15, 57–68, 102, 109, 118
   succession_diagram.py2134380%6, 123–130, 135–139, 152, 159, 166, 174, 177, 183–216, 307, 447–449, 455, 581
   trappist_core.py1872686%10–12, 40, 42, 82, 128, 193, 195, 197, 232–234, 254–260, 318, 320, 350, 390, 392, 423, 452
balm/_sd_algorithms
   compute_attractor_seeds.py29197%8
   expand_attractor_seeds.py50492%6, 94–99
   expand_bfs.py28196%6
   expand_dfs.py30197%6
   expand_minimal_spaces.py37197%6
   expand_source_SCCs.py189995%18–20, 90, 100, 143, 166–167, 172, 289
   expand_to_target.py31390%6, 38, 43
TOTAL156018188% 

Tests Skipped Failures Errors Time
363 0 💤 0 ❌ 0 🔥 1m 17s ⏱️

Please sign in to comment.