Skip to content

Commit

Permalink
fix valve graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Feb 23, 2024
1 parent fa948c8 commit 3094bb5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions thermosteam/_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,10 @@ def tailor_scalar_node(node, unit): # pragma: no coverage
node['peripheries'] = '0'
def tailor_valve_node(node, unit): # pragma: no coverage
if tmo.preferences.graphviz_format == 'svg':
# TODO: Remove this fallback once fix for valve svg output in digraph.py
node.clear()
node.update(box_node)
node['name'] = ''
node['fillcolor'] = tmo.preferences.unit_color
node['fontcolor'] = tmo.preferences.unit_label_color
node['color'] = tmo.preferences.unit_periphery_color
else:
node['label'] = ''
if tmo.preferences.unit_color == "#555f69":
filename = "graphics/valve_dark.png"
elif tmo.preferences.unit_color == "white:#CDCDCD":
Expand Down

0 comments on commit 3094bb5

Please sign in to comment.