Skip to content

Commit 80a596f

Browse files
add tests
1 parent bc55428 commit 80a596f

File tree

4 files changed

+195
-2
lines changed

4 files changed

+195
-2
lines changed

stingray/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class EventList(StingrayTimeseries):
109109
ncounts: int
110110
Number of desired data points in event list. Deprecated
111111
112-
gtis: ``[[gti0_0, gti0_1], [gti1_0, gti1_1], ...]``
112+
gti: ``[[gti0_0, gti0_1], [gti1_0, gti1_1], ...]``
113113
Good Time Intervals
114114
115115
pi : integer, numpy.ndarray
@@ -171,7 +171,7 @@ class EventList(StingrayTimeseries):
171171
mjdref : float
172172
The MJD used as a reference for the time array.
173173
174-
gtis: ``[[gti0_0, gti0_1], [gti1_0, gti1_1], ...]``
174+
gti: ``[[gti0_0, gti0_1], [gti1_0, gti1_1], ...]``
175175
Good Time Intervals
176176
177177
pi : integer, numpy.ndarray

stingray/io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,7 @@ def _transform_slice_into_events(self, data):
873873
):
874874
conversion = (1 * u.Unit(unit)).to(u.keV).value
875875
new_ts.energy = energy * conversion
876+
new_ts.pi = channels
876877
else:
877878
if self.energy_column in data.dtype.names:
878879
conversion = 1

0 commit comments

Comments
 (0)