Skip to content

Commit

Permalink
Eliminate local imports
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Jan 11, 2024
1 parent 2a7459d commit 60d2769
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions stingray/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
gti_border_bins,
get_btis,
merge_gtis,
check_separate,
append_gtis,
get_total_gti_length,
bin_intervals_from_gtis,
time_intervals_from_gtis,
)

from typing import TYPE_CHECKING, Type, TypeVar, Union
Expand Down Expand Up @@ -1317,7 +1318,6 @@ def exposure(self):
total_exposure : float
The total exposure of the time series, in seconds.
"""
from .gti import get_total_gti_length

return get_total_gti_length(self.gti)

Expand Down Expand Up @@ -2578,7 +2578,6 @@ def analyze_segments(self, func, segment_size, fraction_step=1, **kwargs):
>>> np.allclose(res, 10)
True
"""
from .gti import bin_intervals_from_gtis, time_intervals_from_gtis

if segment_size is None:
start_times = self.gti[:, 0]
Expand Down

0 comments on commit 60d2769

Please sign in to comment.