Skip to content

Commit 6f969fd

Browse files
committed
Making validity attribute from time correlation packet no longer TZ aware (due to this issue: pandas-dev/pandas#12985)
1 parent ddac35a commit 6f969fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

midas/ros_tm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5261,6 +5261,7 @@ def read_timecorr(tcorr_file='TLM__MD_TIMECORR.DAT'):
52615261
delta_t_s = dds_header.scet1 + dds_header.scet2/1.e6
52625262
# delta_t = timedelta(seconds=dds_header.scet1, microseconds=dds_header.scet2)
52635263
validity = dds_obt_epoch + timedelta(seconds=delta_t_s)
5264+
validity = validity.replace(tzinfo=None)
52645265

52655266
grad, offs, std, gent1, gent2 = struct.unpack('>3dIH',tcorr[pkt_len*pkt+dds_header_len:pkt_len*pkt+dds_header_len+pkt_dfield_len])
52665267
gentime = obt_epoch + timedelta(seconds = gent1 + (gent2/2.**16))

0 commit comments

Comments
 (0)