Skip to content

Commit

Permalink
Fix computing DC flux when no object is close enought
Browse files Browse the repository at this point in the history
  • Loading branch information
karpov-sv committed Dec 24, 2023
1 parent 5d9fa45 commit 738be1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def draw_lightcurve(switch: int, pathname: str, object_data, object_upper, objec
apparent_flux(*args) for args in zip(
mag.astype(float).values,
err.astype(float).values,
pdf['i:magnr'].astype(float).values if is_dc_corrected else 99.0,
pdf['i:magnr'].astype(float).values if is_dc_corrected else [99.0]*len(pdf.index),
pdf['i:sigmagnr'].astype(float).values,
pdf['i:isdiffpos'].values
)
Expand Down Expand Up @@ -1042,7 +1042,7 @@ def draw_lightcurve(switch: int, pathname: str, object_data, object_upper, objec
{
'type': 'line',
'yref': 'paper', 'y0':0.325, 'y1': 0.325,
'xref': 'paper', 'x0': 0, 'x1': 1,
'xref': 'paper', 'x0': -0.1, 'x1': 1.05,
'line': {'color': 'gray', 'width': 4},
'opacity': 0.1,
}
Expand Down

0 comments on commit 738be1f

Please sign in to comment.