def resolveAggregation(resourceURI,timerange): from org.das2.fsm import FileStorageModel from org.das2.util.filesystem import FileSystem i= FileStorageModel.splitIndex( resourceURI ) root= resourceURI[0:i] # the static part of the name template= resourceURI[i:] # the templated part of the name fs= FileSystem.create( root ) fsm= FileStorageModel.create( fs, template ) names= fsm.getBestNamesFor( DatumRangeUtil.parseTimeRange(timerange),monitor.getSubtaskMonitor('listing files') ) dummy = names for i in range(len(names)): dummy[i] = root + names[i] print 'Dummy is', dummy return dummy tr = 'Str[s=2016-130]' fan = 'Str[s=090]' species = 'Str[s=I]' telescope = 2 timeBinWidth = 'Str[s=0s]' import sys cols = """160:162""" i = 0 valid_events__CLASSTYPE = QDataSet # return type from getDataSet (spot line789) TOFxE_events__CLASSTYPE = QDataSet # (spot line1014 a) TOFxPH_events__CLASSTYPE = QDataSet # (spot line1014 a) longspecies = """Ions""" longspecies = """Electrons""" TOFxE_events__CLASSTYPE = QDataSet # ( spot line 898 ) from org.das2.qds.util.Reduction import reducex result__CLASSTYPE = QDataSet # ( spot line 898 ) if ( len(timeBinWidth)>0 and timeBinWidth!='0s' ): result__CLASSTYPE = QDataSet # ( spot line 898 ) result__CLASSTYPE = QDataSet # ( spot line 898 )