Skip to content

Commit f29ceb1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fea592b commit f29ceb1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/lightcurves/LC.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def get_gti_iis(time, n_gaps, n_pick):
7979
GTI_end_ii = np.append(GTI_end_ii, len(time) - 1)
8080
if n_pick:
8181
# only consider the n_pick longest gtis
82-
gap_len = np.array([t - s for s, t in zip(GTI_start_ii, GTI_end_ii, strict=False)])
82+
gap_len = np.array(
83+
[t - s for s, t in zip(GTI_start_ii, GTI_end_ii, strict=False)]
84+
)
8385
gap_len1 = np.sort(gap_len)
8486
ii = [
8587
x for x in range(len(gap_len)) if gap_len[x] in gap_len1[-n_pick:]

src/lightcurves/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
...
33
"""
4+
45
from __future__ import annotations
56

67
from .version import __version__

tests/test_basics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33

44
def test_import():
5-
65
assert True

0 commit comments

Comments
 (0)