Skip to content

Commit

Permalink
Merge branch 'tickets/DM-43180'
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Jun 17, 2024
2 parents 09425cb + 4f2e0fa commit 36053db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/tester/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def process_group(kafka_url, visit_infos, uploader):
for info in visit_infos:
group = info.groupId
n_snaps = info.nimages
visit = SummitVisit(**info.get_bare_visit(), private_sndStamp=info.private_sndStamp)
visit = SummitVisit(**info.get_bare_visit(),
private_sndStamp=info.private_sndStamp,
private_efdStamp=astropy.time.Time(info.private_sndStamp, format="unix_tai").unix,
)
send_next_visit(kafka_url, group, {visit})
break
else:
Expand Down
1 change: 1 addition & 0 deletions python/tester/upload_from_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def prepare_one_visit(kafka_url, group_id, butler, instrument, visit_id):
duration=duration,
totalCheckpoints=1,
private_sndStamp=data_id.records["exposure"].timespan.begin.unix_tai-2*duration,
private_efdStamp=data_id.records["exposure"].timespan.begin.unix-2*duration,
)
send_next_visit(kafka_url, group_id, {visit})

Expand Down

0 comments on commit 36053db

Please sign in to comment.