Exemplo n.º 1
0
 def _srcDialog(self):
     paramDict = MyOrderedDict()
     paramDict['Source Model File'] = Param('file', '*.xml')
     paramDict['optimizer'] = Param('string', 'Minuit')
     root = SimpleDialog(paramDict, title="Define SrcAnalysis Object:")
     root.mainloop()
     xmlFile = _resolveFileList(paramDict['Source Model File'].value())[0]
     output = (xmlFile, paramDict['optimizer'].value())
     return output
Exemplo n.º 2
0
 def _obsDialog(self):
     paramDict = MyOrderedDict()
     paramDict['eventFile'] = Param('file', '*.fits')
     paramDict['scFile'] = Param('file', '*scData*.fits')
     paramDict['expMap'] = Param('file', '')
     paramDict['expCube'] = Param('file', '')
     paramDict['irfs'] = Param('string', 'TEST')
     root = SimpleDialog(paramDict, title="Observation Elements:")
     root.mainloop()
     eventFiles = _resolveFileList(paramDict['eventFile'].value())
     scFiles = _resolveFileList(paramDict['scFile'].value())
     output = (eventFiles, scFiles, paramDict['expMap'].value(),
               paramDict['expCube'].value(), paramDict['irfs'].value())
     return output
Exemplo n.º 3
0
 def _obsDialog(self, srcMaps, expCube):
     paramDict = MyOrderedDict()
     if srcMaps is None:
         paramDict['srcMaps'] = Param('file', '*.fits')
     else:
         paramDict['srcMaps'] = Param('file', srcMaps)
     if expCube is None:
         paramDict['expCube'] = Param('file', '*.fits')
     else:
         paramDict['expCube'] = Param('file', expCube)
     paramDict['binnedExpMap'] = Param('file', '')
     paramDict['irfs'] = Param('string', 'DC1A')
     root = SimpleDialog(paramDict, title="Binned Analysis Elements:")
     root.mainloop()
     output = (paramDict['srcMaps'].value(), paramDict['expCube'].value(),
               paramDict['binnedExpMap'].value(), paramDict['irfs'].value())
     return output