Skip to content

Commit

Permalink
Update sinusoidal_lightcurve.py
Browse files Browse the repository at this point in the history
Fix sine wave implementation....
  • Loading branch information
bernardinelli authored Sep 1, 2023
1 parent f695e7c commit eb08832
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def compute(self, df: pd.DataFrame) -> np.array:
# Verify that the input data frame contains each of the required columns.
self._validate_column_names(df)

modtime = np.mod((df["FieldMJD"] + df["Time0"]) / df["Period"], 2 * np.pi)
return df["LCA"] * np.sin(modtime)
time = 2 * np.pi * (df["FieldMJD"] - df["Time0"])/df["Period"]
return df["LCA"] * np.sin(time)

@staticmethod
def name_id() -> str:
Expand Down

0 comments on commit eb08832

Please sign in to comment.