Skip to content

Commit

Permalink
minor enhancement to process model display
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Jan 15, 2025
1 parent f313745 commit b6d6ef9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion biosteam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""
from __future__ import annotations
__version__ = '2.50.3'
__version__ = '2.50.4'

#: Chemical engineering plant cost index (defaults to 567.5 at 2017).
CE: float = 567.5
Expand Down
8 changes: 5 additions & 3 deletions biosteam/process_tools/process_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ def scenario_info(scenario, add_metadata):
except:
arg = f"{i}={j},"
if add_metadata and i in metadata:
comment = grey(' # ' + metadata[i])
if len(comment) > 15:
comment = '# ' + metadata[i]
separate = len(arg + comment) > 50
comment = grey(comment)
if separate:
arguments.append(comment)
arguments.append(arg)
continue
else:
arg += comment
arg += ' ' + comment
arguments.append(
arg
)
Expand Down
33 changes: 17 additions & 16 deletions docs/tutorial/Process_models.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name='biosteam',
packages=['biosteam'],
license='MIT',
version='2.50.3',
version='2.50.4',
description='The Biorefinery Simulation and Techno-Economic Analysis Modules',
long_description=open('README.rst', encoding='utf-8').read(),
author='Yoel Cortes-Pena',
Expand Down

0 comments on commit b6d6ef9

Please sign in to comment.