Skip to content

Commit

Permalink
sourcery fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorkowski committed May 1, 2024
1 parent 0bb3dc5 commit 3e0eda9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions particula/next/gas/vapor_pressure.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
"""Vapor Pressure Module.
This module calculates the vapor pressure of substances based on different
strategies. These strategies are interchangeable and can be used to calculate
the vapor pressure of a substance at a given temperature. The module provides
a factory method to create a concrete VaporPressureStrategy object based on
the desired strategy.
"""Strategy pattern for vapor pressure calculations.
All units are in base SI units (kg, m, s).
"""

Expand Down Expand Up @@ -338,9 +344,8 @@ def pure_vapor_pressure(
100 # Convert from hPa to Pa

# Select the appropriate equation based on temperature
vapor_pressure = (vapor_pressure_below_freezing * temp_below_freezing +
vapor_pressure_above_freezing * temp_above_freezing)
return vapor_pressure
return (vapor_pressure_below_freezing * temp_below_freezing +
vapor_pressure_above_freezing * temp_above_freezing)


def vapor_pressure_factory(
Expand Down

0 comments on commit 3e0eda9

Please sign in to comment.