Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Sep 15, 2024
1 parent abd2ec5 commit f80a8c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions biosteam/plots/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ def plot_single_point_sensitivity(baseline, lb, ub,
if index is None: index = ub.index
if name is None: name = ub.name
ub = ub.values
mask = np.isnan(lb) | np.isnan(ub)
lb[mask] = baseline
ub[mask] = baseline
if index is None:
raise ValueError('must pass index if lb or ub is not a pandas Series object')
# Sort parameters for plot
Expand Down
5 changes: 4 additions & 1 deletion biosteam/units/design_tools/pressure_vessel.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def vessel_material(self, material):
self._vessel_material = material

def _get_design_info(self):
return (('Vessel material', self._vessel_material, ''),)
try:
return (('Vessel material', self._vessel_material, ''),)
except:
return ()

def _default_vessel_type(self):
return None
Expand Down

0 comments on commit f80a8c3

Please sign in to comment.