diff --git a/DialogTools/MultiQuantileLisaDlg.cpp b/DialogTools/MultiQuantileLisaDlg.cpp index 06621b295..8941dc4af 100644 --- a/DialogTools/MultiQuantileLisaDlg.cpp +++ b/DialogTools/MultiQuantileLisaDlg.cpp @@ -457,6 +457,63 @@ void MultiQuantileLisaDlg::OnOK(wxCommandEvent& event ) } boost::uuids::uuid w_id = weights_ids[sel]; + // check if satisfy colocation and no-colocation cases + if (num_vars >= 2) { + std::vector data(num_vars); // data[variable][time][obs] + std::vector undef_data(num_vars); + for (int i=0; iGetColData(col_ids[i], data[i]); + table_int->GetColUndefined(col_ids[i], undef_data[i]); + } + GalElement* W = gw->gal; + int t = 0; + vector local_t; + for (int v=0; v undefs; + for (int i=0; iGetValue()) { + wxMessageDialog dlg (this, _("The selected variables have no co-location. Please change your selection, or select \"No colocation\" option for bivariate case."), _("Error"), wxOK | wxICON_WARNING); + dlg.ShowModal(); + return; + } else if (chk_nocolocation->GetValue() && nocolocation == false) { + wxMessageDialog dlg (this, _("The selected variables have co-location. Please change your selection, or unselect \"No colocation\" option for bivariate case."), _("Error"), wxOK | wxICON_WARNING); + dlg.ShowModal(); + return; + } + } + JCCoordinator* lc = new JCCoordinator(w_id, project, var_info, col_ids); MLJCMapFrame *sf = new MLJCMapFrame(parent, project, lc, false); diff --git a/version.h b/version.h index cb83a7fe4..7d93e33fd 100644 --- a/version.h +++ b/version.h @@ -2,10 +2,10 @@ namespace Gda { const int version_major = 1; const int version_minor = 16; const int version_build = 0; - const int version_subbuild = 14; + const int version_subbuild = 16; const int version_year = 2020; const int version_month = 10; - const int version_day = 19; + const int version_day = 20; const int version_night = 0; const int version_type = 2; // 0: alpha, 1: beta, 2: release }