Skip to content

Commit

Permalink
Accept integer pressure in sample_pressure()
Browse files Browse the repository at this point in the history
  • Loading branch information
bernstei committed Oct 23, 2024
1 parent 0141d5c commit 5e64aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfl/utils/pressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def sample_pressure(pressure, at=None, rng=None):
"""
try:
if isinstance(pressure, float):
if isinstance(pressure, (float, int)):
p = pressure
elif pressure[0] == 'info':
if len(pressure) != 2:
Expand Down

0 comments on commit 5e64aa7

Please sign in to comment.