Skip to content

Commit 0701ac6

Browse files
author
Alvaro Arroyo Parejo
committed
bug fix missing code in impacts
1 parent d08777b commit 0701ac6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

astroquery/esa/neocc/tabs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,18 +435,18 @@ def _impacts_parser(self, data_obj):
435435
footer = self._get_footer(data_obj)
436436
# Assign parsed data to attributes
437437
# Change format to datetime and show in isoformat()
438-
arc_start = footer[1]['start'].split('.')
438+
arc_start = footer[1][0].split('.')
439439
arc_start = datetime.strptime(arc_start[0], '%Y/%m/%d') +\
440440
timedelta(float(arc_start[1])/1e3)
441441
self.arc_start = arc_start.isoformat()
442442
# Change format to datetime and show in isoformat()
443-
arc_end = footer[1]['end'].split('.')
443+
arc_end = footer[1][1].split('.')
444444
arc_end = datetime.strptime(arc_end[0], '%Y/%m/%d') +\
445445
timedelta(float(arc_end[1])/1e3)
446446
self.arc_end = arc_end.isoformat()
447-
self.observation_accepted = int(footer[0]['total']) - \
448-
int(footer[0]['rejected'])
449-
self.observation_rejected = int(footer[0]['rejected'])
447+
self.observation_accepted = int(footer[0][0]) - \
448+
int(footer[0][1])
449+
self.observation_rejected = int(footer[0][1])
450450
self.computation = footer[2]
451451
self.additional_note = footer[4]
452452
# Assign info text from pandas

0 commit comments

Comments
 (0)