Skip to content

Commit

Permalink
adding doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Oct 4, 2024
1 parent 6f9e884 commit bea6c46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/acom_music_box/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,11 @@ def convert_concentration(data, key, temperature, pressure):
def calculate_air_density(temperature, pressure):
"""
Calculate the air density in moles/m^3.
Args:
temperature (float): The temperature in Kelvin.
pressure (float): The pressure in Pascals.
Returns:
float: The air density in moles/m^3.
"""
return pressure / (GAS_CONSTANT * temperature)

0 comments on commit bea6c46

Please sign in to comment.