Skip to content

Commit

Permalink
Add doc on dt
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Nov 14, 2023
1 parent f2ad54c commit f28c8ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 8 additions & 2 deletions stingray/crossspectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1899,11 +1899,12 @@ class DynamicalCrossspectrum(AveragedCrossspectrum):
----------
data1 : :class:`stingray.Lightcurve` or :class:`stingray.EventList` object
The time series or event list from the subject band, or channel, for which
the dynamical cross spectrum is to be calculated.
the dynamical cross spectrum is to be calculated. If :class:`stingray.EventList`, ``dt``
must be specified as well.
data2 : :class:`stingray.Lightcurve` or :class:`stingray.EventList` object
The time series or event list from the reference band, or channel, of the dynamical
cross spectrum.
cross spectrum. If :class:`stingray.EventList`, ``dt`` must be specified as well.
segment_size : float, default 1
Length of the segment of light curve, default value is 1 (in whatever
Expand All @@ -1922,6 +1923,11 @@ class DynamicalCrossspectrum(AveragedCrossspectrum):
use this and only give GTIs to the input object before making
the cross spectrum.
dt: float
Compulsory for input :class:`stingray.EventList` data. The time resolution of the
lightcurve that is created internally from the input event lists. Drives the
Nyquist frequency.
Attributes
----------
segment_size: float
Expand Down
7 changes: 6 additions & 1 deletion stingray/powerspectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ class DynamicalPowerspectrum(DynamicalCrossspectrum):
----------
lc : :class:`stingray.Lightcurve` or :class:`stingray.EventList` object
The time series or event list of which the dynamical power spectrum is
to be calculated.
to be calculated. If :class:`stingray.EventList`, ``dt`` must be specified as well.
segment_size : float, default 1
Length of the segment of light curve, default value is 1 (in whatever
Expand All @@ -919,6 +919,11 @@ class DynamicalPowerspectrum(DynamicalCrossspectrum):
use this and only give GTIs to the input object before making
the power spectrum.
dt: float
Compulsory for input :class:`stingray.EventList` data. The time resolution of the
lightcurve that is created internally from the input event lists. Drives the
Nyquist frequency.
Attributes
----------
segment_size: float
Expand Down

0 comments on commit f28c8ce

Please sign in to comment.