@@ -136,17 +136,37 @@ def get_fill_dict(filln, version=default_version, use_dP=True):
136136 output [varname + '_B%i' % beam ] = tvl2
137137
138138 elif varname .startswith ('QRLEB_05L4' ):
139- tvl . values = qbs_ob . dictionary [ '05L4_947_comb' ]
139+ temp_name = '05L4_947_comb'
140140 tvl .t_stamps = qbs_ob .timestamps
141+ if temp_name in qbs_ob .dictionary :
142+ tvl .values = qbs_ob .dictionary [temp_name ]
143+ else :
144+ tvl .values = tvl .t_stamps * 0.
145+ print 'Skipped %s due to key error!' % temp_name
141146 elif varname .startswith ('QRLEB_05R4' ):
142- tvl . values = qbs_ob . dictionary [ '05R4_947_comb' ]
147+ temp_name = '05R4_947_comb'
143148 tvl .t_stamps = qbs_ob .timestamps
149+ if temp_name in qbs_ob .dictionary :
150+ tvl .values = qbs_ob .dictionary [temp_name ]
151+ else :
152+ tvl .values = tvl .t_stamps * 0.
153+ print 'Skipped %s due to key error!' % temp_name
144154 elif varname .startswith ('QRLFF_05L4' ):
145- tvl . values = qbs_ob . dictionary [ '05L4_947_quad' ]
155+ temp_name = '05L4_947_quad'
146156 tvl .t_stamps = qbs_ob .timestamps
157+ if temp_name in qbs_ob .dictionary :
158+ tvl .values = qbs_ob .dictionary [temp_name ]
159+ else :
160+ tvl .values = tvl .t_stamps * 0.
161+ print 'Skipped %s due to key error!' % temp_name
147162 elif varname .startswith ('QRLFF_05R4' ):
148- tvl . values = qbs_ob . dictionary [ '05R4_947_quad' ]
163+ temp_name = '05R4_947_quad'
149164 tvl .t_stamps = qbs_ob .timestamps
165+ if temp_name in qbs_ob .dictionary :
166+ tvl .values = qbs_ob .dictionary [temp_name ]
167+ else :
168+ tvl .values = tvl .t_stamps * 0.
169+ print 'Skipped %s due to key error!' % temp_name
150170 elif '_QBS9' in varname :
151171 firstp , lastp = tuple (varname .split ('_QBS' ))
152172 kkk = firstp .split ('_' )[- 1 ]+ '_' + lastp .split ('.' )[0 ]
0 commit comments