-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constraints #32
base: main
Are you sure you want to change the base?
Constraints #32
Conversation
atoms::JuLIP.Atoms{T} | ||
constr::Matrix{M} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it is fine here to require that the type parameter T of the atoms is the same as that for the matrix. Or if the constraints matrix is supposed to always contain ones and zeros I would suggest using Matrix{Int}
instead.
model = AdiabaticModels.JuLIPModel(at) | ||
incl = ones(1,length(at)) | ||
model = AdiabaticModels.JuLIPModel(at,incl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of changing the test. I would add a constructor where the second argument defaults to ones for all degrees of freedom. In the unlikely event that anyone else is using this will ensure their code doesn't break.
No description provided.