Project

General

Profile

Bug #991

No data for recent runs

Added by Rogers, Chris about 12 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Category:
-
Start date:
21 May 2012
Due date:
% Done:

0%

Estimated time:

Description

I'm probably being a moron but... I was trying to access the cdb to figure beamline settings for some recent runs and couldn't get any data. The script I'm running looks something like:

from cdb import Beamline
beamline = Beamline(url='http://cdb.mice.rl.ac.uk/')
print beamline.get_beamline_for_run(3648)

which returns:

{}

why is that? I believe this was a "good" run i.e. one for which there should indeed be data. This was a run taken in March. If I make the same test for a different run (this happens to be our example test case run number)

from cdb import Beamline
beamline = Beamline(url='http://cdb.mice.rl.ac.uk/')
print beamline.get_beamline_for_run(2873)

I get some reasonable output

{2873L: {'status': True, 'beam_stop': False, 'run_type': None, 'run_number': 2873L, 'daq_trigger': 'TOF0', 'diffuser_thickness': 0, 'notes': 'NULL', 'end_pulse': 564490L, 'proton_absorber_thickness': 0, 'daq_version': '6.5', 'step': 1.0, 'daq_gate_width': 0.0, 'gdc_host_name': None, 'end_time': datetime.datetime(2010, 8, 14, 17, 48, 21, 259052), 'magnets': {'q1': {'polarity': None, 'set_current': 102.38}, 'q3': {'polarity': None, 'set_current': 89.0}, 'q2': {'polarity': None, 'set_current': 127.91}, 'q5': {'polarity': None, 'set_current': 212.02}, 'q4': {'polarity': None, 'set_current': 158.1}, 'q7': {'polarity': None, 'set_current': 138.67}, 'q6': {'polarity': None, 'set_current': 140.57}, 'q9': {'polarity': None, 'set_current': 179.18}, 'q8': {'polarity': None, 'set_current': 209.82}, 'd2': {'polarity': None, 'set_current': 94.15}, 'ds': {'polarity': None, 'set_current': 669.0}, 'd1': {'polarity': None, 'set_current': 323.15}}, 'start_pulse': 564087L, 'optics': 'mu+', 'start_time': datetime.datetime(2010, 8, 14, 17, 31, 9, 219158)}}

No data to display

Also available in: Atom PDF