Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrozum committed Mar 1, 2024
1 parent b617471 commit 8ab13c3
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions balm/succession_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,27 +450,6 @@ def node_data(self, node_id: int) -> NodeData:
"""
return cast(NodeData, self.dag.nodes[node_id])

# def node_depth(self, node_id: int) -> int:
# """
# Get the depth associated with the provided `node_id`. The depth is counted
# as the longest path from the root node to the given node.
# """
# return cast(int, self.dag.nodes[node_id]["depth"])
# def node_space(self, node_id: int) -> BooleanSpace:
# """
# Get the sub-space associated with the provided `node_id`.

# Note that this is the space *after* percolation. Hence it can hold that
# `|node_space(child)| < |node_space(parent)| + |stable_motif(parent, child)|`.
# """
# return cast(BooleanSpace, self.dag.nodes[node_id]["space"])

# def node_is_expanded(self, node_id: int) -> bool:
# """
# True if the successors of the given node are already computed.
# """
# return cast(bool, self.dag.nodes[node_id]["expanded"])

def node_is_minimal(self, node_id: int) -> bool:
"""
True if the node represents a minimal trap space.
Expand Down Expand Up @@ -602,18 +581,6 @@ def node_nfvs(self, node_id: int) -> list[str]:

return self.nfvs

# def node_restricted_petri_net(self, node_id: int) -> nx.DiGraph | None:
# """
# Return the pre-computed Petri net representation restricted to the subspace
# of the specified SD node.

# This can return `None` if the requested node is already fully expanded, because
# in such a case, there is no need to store the Petri net anymore. However,
# in general you should assume that this field is optional, even on nodes that
# are not expanded yet.
# """
# return cast(nx.DiGraph, self.dag.nodes[node_id]["petri_net"])

def edge_stable_motif(
self, parent_id: int, child_id: int, reduced: bool = False
) -> BooleanSpace:
Expand Down

1 comment on commit 8ab13c3

@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.py1141488%102, 114, 120, 124, 129, 138–154, 472, 475, 488
   interaction_graph_utils.py30487%6–8, 145–146
   motif_avoidant.py152299%25, 124
   petri_net_translation.py1481193%18–22, 58, 94, 207–208, 232–233, 242, 346
   space_utils.py129497%25–27, 252, 278
   succession_diagram.py2571694%6, 184–189, 197, 257–258, 268, 274, 390, 580, 772, 810, 847
   symbolic_utils.py26388%10–12, 44
   trappist_core.py1833084%11–15, 45, 47, 82, 129, 195, 197, 199, 227–230, 234–236, 256–262, 320, 322, 352, 392, 394, 425, 454
balm/_sd_algorithms
   compute_attractor_seeds.py30197%8
   expand_attractor_seeds.py51590%6, 42, 97–102
   expand_bfs.py28196%6
   expand_dfs.py30197%6
   expand_minimal_spaces.py37295%6, 31
   expand_source_SCCs.py164696%19–21, 91, 101, 143, 287
   expand_to_target.py31390%6, 38, 43
TOTAL147110393% 

Tests Skipped Failures Errors Time
361 0 💤 0 ❌ 0 🔥 58.882s ⏱️

Please sign in to comment.