Skip to content

Commit

Permalink
Fix the nphots parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Sep 26, 2023
1 parent c55c0d6 commit 8d23144
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stingray/lombscargle.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class LombScargleCrossspectrum(Crossspectrum):
The method to be used by the Lomb-Scargle Fourier Transformation function. `fast`
and `slow` are the allowed values. Default is `fast`. fast uses the optimized Press
and Rybicki O(n*log(n))
oversampling : float, optional, default: 5
Interpolation Oversampling Factor (for the fast algorithm)
Expand Down Expand Up @@ -371,7 +371,7 @@ class LombScarglePowerspectrum(LombScargleCrossspectrum):
skip_checks: bool
Skip initial checks, for speed or other reasons (you need to trust your
inputs!).
min_freq : float
Minimum frequency to take the Lomb-Scargle Fourier Transform
Expand Down Expand Up @@ -537,8 +537,8 @@ def lscrossspectrum_from_lightcurve(
lscs.min_freq = min_freq
lscs.max_freq = max_freq
lscs.oversampling = oversampling
lscs.nphots1 = lc1.n
lscs.nphots2 = lc2.n
lscs.nphots1 = lc1.counts.sum()
lscs.nphots2 = lc2.counts.sum()
lscs.dt = lc1.dt
lscs.n = lc1.n
lscs.method = method
Expand Down

0 comments on commit 8d23144

Please sign in to comment.