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)
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)
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, )
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)
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)