MomentsLD / moments

MIT License
10 stars 3 forks source link

LinAlgError: Singular matrix error due to normalized varcovs matrix #163

Closed georgette-femerling closed 7 months ago

georgette-femerling commented 7 months ago

I was getting a LinAlgError: Singular matrix error when trying to run the optimization with Demes.

I traced it to the varcovs matrices, after normalization the determinant is 0. I added a few patches and checks to deal with the cases of normalized varcovs as well as when there is only 1 population in the data.

apragsdale commented 7 months ago

Thanks @georgette-femerling - I'm going to close this, but I did use some of your suggested changes over in #170. Thank you!