Skip to content

Commit

Permalink
2.49.4 release: add python 3.11 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Dec 21, 2024
1 parent 32fcab6 commit e7fccc2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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.49.3'
__version__ = '2.49.4'

#: Chemical engineering plant cost index (defaults to 567.5 at 2017).
CE: float = 567.5
Expand Down
10 changes: 5 additions & 5 deletions biosteam/units/adsorption.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,14 +801,14 @@ def plot_fit_isotherm(dct, method):
if method == 'Langmuir':
plt.plot(
*dct['linearized prediction'],
label=f'R$^2$ = {round(dct['R2'], 2)}, K={round(dct['K'], 2)}, q$_{{max}}$={round(dct['qmax'], 2)}'
label=f"R$^2$ = {round(dct['R2'], 2)}, K={round(dct['K'], 2)}, q$_{{max}}$={round(dct['qmax'], 2)}"
)
plt.xlabel('C [mg / L]')
plt.ylabel('C / q [g / L]')
else:
plt.plot(
*dct['linearized prediction'],
label=f'R$^2$ = {round(dct['R2'], 2)}, K={round(dct['K'], 2)}, n={round(dct['n'], 2)}'
label=f"R$^2$ = {round(dct['R2'], 2)}, K={round(dct['K'], 2)}, n={round(dct['n'], 2)}"
)
plt.xlabel('log(C)')
plt.ylabel('log(q)')
Expand Down Expand Up @@ -836,10 +836,10 @@ def plot_fit_isotherm(dct, method):
R2 = dct['R2']
plt.plot(
*dct['linearized prediction'],
label=f'R$^2$ = {np.round(R2, 2)}, k={dct['k']:.2g}'
label=f"R$^2$ = {np.round(R2, 2)}, k={dct['k']:.2g}"
)
plt.ylabel(f'log((qe - q) / q)')
plt.xlabel(f't')
plt.ylabel('log((qe - q) / q)')
plt.xlabel('t')
plt.legend()

AdsorptionColumn = SingleComponentAdsorptionColumn
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.49.3',
version='2.49.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 e7fccc2

Please sign in to comment.