Skip to content

Commit

Permalink
fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Feb 4, 2025
1 parent a918848 commit 1187dde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thermosteam/_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_node_tailored_to_unit(self, unit): # pragma: no coverage
else:
N = None
label = '\n'.join([tmo.utils.format_title(i) for i in ID.split('.')])
label = f"{owner.ID}\n{label}\nAuxiliary"
label = f"{owner.ID}\n{label}"
if N is not None and N > 1: label = f"{label}\n1 of {N}"
node['label'] = label
else:
Expand Down
5 changes: 4 additions & 1 deletion thermosteam/reaction/_reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,10 @@ def __call__(self, material, T=None, P=None, phase=None, time=None):
values, config, original = as_material_array(
material, self._basis, self._phases, self.chemicals
)
self._reaction(values)
if values.ndim == 2:
for i in values: self._reaction(i)
else:
self._reaction(values)
if tmo.reaction.CHECK_FEASIBILITY:
has_negatives = values.has_negatives()
if has_negatives:
Expand Down

0 comments on commit 1187dde

Please sign in to comment.