mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-06-24 13:11:08 +02:00
Comment out dot.view() for compatibility issues running on docker
This commit is contained in:
@ -140,6 +140,7 @@ def plot_workflow_graph(yaml_file_path,
|
||||
|
||||
dot = Digraph(format=output_format)
|
||||
dot.attr(rankdir='LR') #'TB') # vertical layout
|
||||
dot.node_attr.update(fontsize='48')
|
||||
|
||||
# Set DPI only if format supports it (like png)
|
||||
if output_format.lower() == 'png':
|
||||
@ -188,6 +189,7 @@ def plot_workflow_graph(yaml_file_path,
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
output_path = os.path.join(output_dir, output_name)
|
||||
dot.render(output_path)
|
||||
dot.view()
|
||||
|
||||
# For SVG or PDF, you may want to return the file path or raw output instead of Image()
|
||||
if output_format.lower() in ['png', 'jpg', 'jpeg', 'gif']:
|
||||
|
Reference in New Issue
Block a user