Skip to content

Commit

Permalink
Remove more code that was introduced due to the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhoerstr committed Aug 20, 2024
1 parent 83bfdfe commit 0c467fc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pfdl_scheduler/petri_net/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ def generate_petri_net(self, process: Process) -> PetriNet:

self.add_callback(second_connection_uuid, self.callbacks.task_finished, task_context)

# assign new clusters before drawing
self.net.clusters = self.tree.cluster

if self.draw_net:
json_string = json.dumps(self.tree.toJSON(), indent=4)
draw_petri_net(self.net, self.path_for_image, ".dot")
Expand Down Expand Up @@ -437,15 +434,6 @@ def generate_condition(
cluster.add_child(cluster_failed)
condition_node.cluster = cluster_passed

cluster = Cluster([passed_uuid, failed_uuid, expression_uuid, finished_uuid])
node.cluster.add_child(cluster)

cluster_passed = Cluster([first_passed_transition_uuid, second_passed_transition_uuid])
cluster_failed = Cluster([first_failed_transition_uuid])
cluster.add_child(cluster_passed)
cluster.add_child(cluster_failed)
condition_node.cluster = cluster_passed

self.generate_statements(
task_context,
condition.passed_stmts,
Expand Down

0 comments on commit 0c467fc

Please sign in to comment.