Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_gti_fits_dataset_with_stingray(hdulist, gtistring=CONFIG.GTI_STRING, time_offset=0):
st_gtis = _get_gti_from_extension(hdulist, gtistring)
if time_offset != 0:
st_gtis[:, 0] = st_gtis[:, 0] - time_offset
st_gtis[:, 1] = st_gtis[:, 1] - time_offset
return DataSet.get_gti_dataset_from_stingray_gti(st_gtis)