@@ -193,7 +193,7 @@ def fetchPropInfo(self):
193
193
# Find the 'ScienceType' from the config table, to indicate DD/WFD/Rolling, etc.
194
194
table = self .tables ['Config' ]
195
195
sciencetypes = table .query_columns_Array (colnames = ['paramValue' , 'nonPropID' ],
196
- constraint = "paramName like 'ScienceType'" )
196
+ constraint = "paramName like 'ScienceType'" )
197
197
if len (sciencetypes ) == 0 :
198
198
# Then this was an older opsim run without 'ScienceType' tags,
199
199
# so fall back to trying to guess what proposals are WFD or DD.
@@ -225,7 +225,8 @@ def fetchRunLength(self, runLengthParam='nRun'):
225
225
runLength = 10.0
226
226
else :
227
227
table = self .tables ['Config' ]
228
- runLength = table .query_columns_Array (colnames = ['paramValue' ], constraint = " paramName = '%s'" % runLengthParam )
228
+ runLength = table .query_columns_Array (colnames = ['paramValue' ],
229
+ constraint = " paramName = '%s'" % runLengthParam )
229
230
runLength = float (runLength ['paramValue' ][0 ]) # Years
230
231
return runLength
231
232
@@ -241,11 +242,14 @@ def fetchLatLonHeight(self):
241
242
height = site .elev
242
243
else :
243
244
table = self .tables ['Config' ]
244
- lat = table .query_columns_Array (colnames = ['paramValue' ], constraint = "paramName = 'latitude'" )
245
+ lat = table .query_columns_Array (colnames = ['paramValue' ],
246
+ constraint = "paramName = 'latitude'" )
245
247
lat = float (lat ['paramValue' ][0 ])
246
- lon = table .query_columns_Array (colnames = ['paramValue' ], constraint = "paramName = 'longitude'" )
248
+ lon = table .query_columns_Array (colnames = ['paramValue' ],
249
+ constraint = "paramName = 'longitude'" )
247
250
lon = float (lon ['paramValue' ][0 ])
248
- height = table .query_columns_Array (colnames = ['paramValue' ], constraint = "paramName = 'height'" )
251
+ height = table .query_columns_Array (colnames = ['paramValue' ],
252
+ constraint = "paramName = 'height'" )
249
253
height = float (height ['paramValue' ][0 ])
250
254
return lat , lon , height
251
255
@@ -352,7 +356,7 @@ def fetchRequestedNvisits(self, propId=None):
352
356
for pId , propType in zip (propData [self .propIdCol ], propData [self .propNameCol ]):
353
357
perPropConfig = self .tables ['Config' ].query_columns_Array (colnames = ['paramName' , 'paramValue' ],
354
358
constraint = 'nonPropID = %d and paramName!="userRegion"'
355
- % (pId ))
359
+ % (pId ))
356
360
filterlist = self ._matchParamNameValue (perPropConfig , 'Filter' )
357
361
if propType == 'WL' :
358
362
# For WL proposals, the simple 'Filter_Visits' == the requested number of observations.
@@ -533,7 +537,8 @@ def fetchConfig(self):
533
537
# Grab the config information for each proposal and module.
534
538
cols = ['paramName' , 'paramValue' , 'comment' ]
535
539
for longmodname , modname in zip (moduledata ['moduleName' ], modulenames ):
536
- config [modname ] = table .query_columns_Array (colnames = cols , constraint = 'moduleName="%s"' % (longmodname ))
540
+ config [modname ] = table .query_columns_Array (colnames = cols ,
541
+ constraint = 'moduleName="%s"' % (longmodname ))
537
542
config [modname ] = config [modname ][['paramName' , 'paramValue' , 'comment' ]]
538
543
for propid , propname in zip (propdata [self .propIdCol ], propnames ):
539
544
config [propname ] = table .query_columns_Array (colnames = cols ,
0 commit comments