def load_start_end_dates(self):
"""
function for loading start and end dates of each survey we want to
process. File format is
yyy/mm/dd hh:mn:ss yyy/mm/dd hh:mn:ss
yyy/mm/dd hh:mn:ss yyy/mm/dd hh:mn:ss
...
update the Campaign object stored in the program by populating its
survey dictionary
"""
#set the survey selection option required by the survey populating
#function:
self.survey_selection_option=2
print 'hold on a sec'
self.statusBar().showMessage("Hold on a sec")
fname = QtGui.QFileDialog.getOpenFileName(self, 'Open file',self.data_path)
self.surveydates=read_start_end_dates(fname)
#call the next generic step of the survey selection process
self.baseStationSelection()
评论列表
文章目录