Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed error when removing None nodes in the visualization and a None was an input to a function #31

Merged
merged 1 commit into from
Oct 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions alpaca/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,12 @@ def _transform_graph(graph, annotations=None, attributes=None,
# Add all the edges from sources to activity and from activity
# to targets
for source in source_entities:
transformed.add_edge(source, node_id, membership=False)
if time_intervals:
_add_gephi_interval(transformed.nodes[source],
node_data['execution_order'])
if not remove_none or (
remove_none and source not in none_nodes):
transformed.add_edge(source, node_id, membership=False)
if time_intervals:
_add_gephi_interval(transformed.nodes[source],
node_data['execution_order'])

if not remove_none or (remove_none and target not in none_nodes):
transformed.add_edge(node_id, target, membership=False)
Expand Down
Loading