mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-18 21:26:47 +02:00
make a lot of retries ...
This commit is contained in:
+2
-1
@@ -91,7 +91,7 @@ def get_pulse_id_date_mapping(pulse_ids):
|
||||
"channels": ["SIN-CVME-TIFGUN-EVR0:BEAMOK"],
|
||||
"fields": ["pulseId", "globalDate"]}
|
||||
|
||||
for c in range(1):
|
||||
for c in range(10):
|
||||
|
||||
logger.info("Retrieve mapping for pulse_id %d" % pulse_id)
|
||||
# Query server
|
||||
@@ -126,6 +126,7 @@ def get_pulse_id_date_mapping(pulse_ids):
|
||||
date = data[0]["data"][0]["globalDate"]
|
||||
date = dateutil.parser.parse(date)
|
||||
dates.append(date)
|
||||
break
|
||||
|
||||
return dates
|
||||
except Exception:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package:
|
||||
name: cadump
|
||||
version: 0.0.6
|
||||
version: 0.0.7
|
||||
|
||||
source:
|
||||
path: ..
|
||||
|
||||
@@ -2,7 +2,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="cadump",
|
||||
version="0.0.6",
|
||||
version="0.0.7",
|
||||
author="Paul Scherrer Institute",
|
||||
author_email="daq@psi.ch",
|
||||
description="Interface to dump data from archiver/databuffer",
|
||||
|
||||
@@ -9,7 +9,7 @@ class TestDownloadData(TestCase):
|
||||
config = {
|
||||
'range': {
|
||||
'startPulseId': 7314794868,
|
||||
'endPulseId': 7414798868
|
||||
'endPulseId': 7314798868
|
||||
},
|
||||
|
||||
'parameters': {
|
||||
|
||||
Reference in New Issue
Block a user