Skip to content

Commit 54935d7

Browse files
committed
Added a missing docstring
1 parent 1444c22 commit 54935d7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

PyStemmusScope/variable_conversion.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ def mask_data(data, min_value=None, max_value=None):
118118

119119

120120
def per_day_to_per_second(data):
121+
"""Converts data in [*/day] to a [*/second] format
122+
123+
Args:
124+
data (float or np.array): Data with units [*/day]
125+
126+
Returns:
127+
float or np.array: Data with units [*/second]
128+
"""
121129
return data / (24 * 3600)
122130

123131

0 commit comments

Comments
 (0)