예제 #1
0
파일: mainwindow.py 프로젝트: sfcta/popgen1
 def dataMargsPers(self):
     reqTables = ['person_sample', 'person_marginals', 'geocorr']
     tableList = self.tableList(self.project.name)
     varsCorrDef = self.project.selVariableDicts.person.keys()
     if self.checkIfTablesExist(reqTables, tableList) and len(varsCorrDef)>0:
         margsModPers = ChangeMargsDlg(self.project, 'person', 'Modify Person Marginals Distributions', 'marginals')
         margsModPers.exec_()
     else:
         QMessageBox.warning(self, "Modify Marginals Distributions",
                             """Import household data and set variable correspondence for person variables """
                             """before changing marginals distributions.""",
                             QMessageBox.Ok)
예제 #2
0
파일: mainwindow.py 프로젝트: sfcta/popgen1
 def dataMargsGQ(self):
     reqTables = ['gq_sample', 'gq_marginals', 'geocorr']
     tableList = self.tableList(self.project.name)
     varsCorrDef = self.project.selVariableDicts.gq.keys()
     if self.checkIfTablesExist(reqTables, tableList) and len(varsCorrDef)>0:
         margsModGQ = ChangeMargsDlg(self.project, 'gq', 'Modify Groupquarter Marginals Distributions', 'marginals')
         margsModGQ.exec_()
     else:
         QMessageBox.warning(self, "Modify Marginals Distributions",
                             """Import household data and set variable correspondence for groupquarter variables """
                             """before changing marginals distributions.""",
                             QMessageBox.Ok)
예제 #3
0
 def dataMargsHhld(self):
     reqTables = ["hhld_sample", "hhld_marginals", "geocorr"]
     tableList = self.tableList(self.project.name)
     varsCorrDef = self.project.selVariableDicts.hhld.keys()
     if self.checkIfTablesExist(reqTables, tableList) and len(varsCorrDef) > 0:
         margsModHhld = ChangeMargsDlg(self.project, "hhld", "Modify Household Marginals Distributions", "marginals")
         margsModHhld.exec_()
     else:
         QMessageBox.warning(
             self,
             "Modify Marginals Distributions",
             """Import household data and set variable correspondence for household variables """
             """before changing marginals distributions.""",
             QMessageBox.Ok,
         )
예제 #4
0
 def dataMargsPers(self):
     reqTables = ['person_sample', 'person_marginals', 'geocorr']
     tableList = self.tableList(self.project.name)
     varsCorrDef = self.project.selVariableDicts.person.keys()
     if self.checkIfTablesExist(reqTables,
                                tableList) and len(varsCorrDef) > 0:
         margsModPers = ChangeMargsDlg(
             self.project, 'person',
             'Modify Person Marginals Distributions', 'marginals')
         margsModPers.exec_()
     else:
         QMessageBox.warning(
             self, "Modify Marginals Distributions",
             """Import household data and set variable correspondence for person variables """
             """before changing marginals distributions.""", QMessageBox.Ok)
예제 #5
0
 def dataMargsGQ(self):
     reqTables = ['gq_sample', 'gq_marginals', 'geocorr']
     tableList = self.tableList(self.project.name)
     varsCorrDef = self.project.selVariableDicts.gq.keys()
     if self.checkIfTablesExist(reqTables,
                                tableList) and len(varsCorrDef) > 0:
         margsModGQ = ChangeMargsDlg(
             self.project, 'gq',
             'Modify Groupquarter Marginals Distributions', 'marginals')
         margsModGQ.exec_()
     else:
         QMessageBox.warning(
             self, "Modify Marginals Distributions",
             """Import household data and set variable correspondence for groupquarter variables """
             """before changing marginals distributions.""", QMessageBox.Ok)