Skip to content

Commit e60a14d

Browse files
erusseilpre-commit-ci[bot]hombit
authored
Update bolometric.py (#430)
* Update bolometric.py replace negative flux values by 0 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Konstantin Malanchev <[email protected]>
1 parent f2d0566 commit e60a14d

File tree

1 file changed

+1
-1
lines changed
  • light-curve/light_curve/light_curve_py/features/rainbow

1 file changed

+1
-1
lines changed

light-curve/light_curve/light_curve_py/features/rainbow/bolometric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def value(t, t0, amplitude, rise_time):
220220
power = np.where(power > 100, 100, power)
221221
result = amplitude * scale * dt * np.exp(power)
222222

223-
return result
223+
return np.where(result > 0, result, 0)
224224

225225
@staticmethod
226226
def initial_guesses(t, m, sigma, band):

0 commit comments

Comments
 (0)