Exemplo n.º 1
0
    def call_plotter(self):
        if self.graphics.value == 'cluster':
           try:
               self.ap = Qt.QDialog()
               self.ap.ui = psx.Main(self.datafolder.dir, self.graphics.value, self.rows.value, self.cols.value)
               self.ap.ui.show()
           except NameError:
               pass

        if self.graphics.value == 'CCall_CCweak':
           try:
               self.ap = Qt.QDialog()
               self.ap.ui = psx.Main(self.datafile.fname, self.graphics.value)
               self.ap.ui.show()
           except NameError:
               pass
        if self.graphics.value == 'shelxc':
           try:
              self.ap = Qt.QDialog()
              self.ap.ui = psx.Main(self.datafile.fname, self.graphics.value)
              self.ap.ui.show()
           except NameError:
               pass
        if self.graphics.value == 'site_occupancy':
           try:
              self.ap = Qt.QDialog()
              self.ap.ui = psx.Main(self.datafile.fname, self.graphics.value)
              self.ap.ui.show()
           except NameError:
               pass
Exemplo n.º 2
0
 def shelxc_plot(self):
     try:
        self.ap = Qt.QDialog()
        self.ap.ui = psx.Main('quick.log', 'shelxc')
        self.ap.ui.show()
     except NameError:
          pass
Exemplo n.º 3
0
 def xscale_plot(self):
     try:
       self.ap = Qt.QDialog()
       self.ap.ui = psx.Main('XSCALE.LP', 'xscale')
       self.ap.ui.show()
     except OSError:
       print "XSCALE.LP File not found, run xscale again\n"