Use newline separator in TLIST
This fixes an issue with the cgi script for long epoch lists.
Currently each separate line has to be less than 256 characters.
@@ -343,9 +343,8 @@ class HorizonsClass(BaseQuery):
# parse self.epochs
if isinstance(self.epochs, (list, tuple, ndarray)):
- request_payload['TLIST'] = "".join(['"' + str(epoch) + '"'
- for epoch
- in self.epochs])
+ request_payload['TLIST'] = "\n".join([str(epoch) for epoch in
+ self.epochs])
elif type(self.epochs) is dict:
if ('start' not in self.epochs or 'stop' not in self.epochs or
'step' not in self.epochs):
@@ -528,9 +527,8 @@ class HorizonsClass(BaseQuery):
# parse self.epochs
if isinstance(self.epochs, (list, tuple, ndarray)):
- request_payload['TLIST'] = "".join(['"' + str(epoch) + '"'
- for epoch
- in self.epochs])
+ request_payload['TLIST'] = "\n".join([str(epoch) for epoch in
+ self.epochs])
elif type(self.epochs) is dict:
if ('start' not in self.epochs or 'stop' not in self.epochs or
'step' not in self.epochs):
@@ -717,9 +715,8 @@ class HorizonsClass(BaseQuery):
# parse self.epochs
if isinstance(self.epochs, (list, tuple, ndarray)):
- request_payload['TLIST'] = "".join(['"' + str(epoch) + '"'
- for epoch
- in self.epochs])
+ request_payload['TLIST'] = "\n".join([str(epoch) for epoch in
+ self.epochs])
elif type(self.epochs) is dict:
if ('start' not in self.epochs or 'stop' not in self.epochs or
'step' not in self.epochs):
