-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove matscipy dependency #14
Conversation
Is there a way to have an if-else version of |
I'm not sure. I'll look into it. |
I'm not sure it's possible given JuliaPackaging/Requires.jl#41 |
Ok, then if I can indulge in your patience a little longer, could you try something the following:
And the |
That's a nice idea. I'll try to do it today / tonight. Sorry for the delay.
…On Mon, Dec 9, 2019, 18:40 Christoph Ortner ***@***.***> wrote:
Ok, then if I can indulge in your patience a little longer, could you try
something the following:
function neighbourlist(at::ASEAtoms, cutoff::Float64)::MatSciPy.NeighbourList
if ASE.hasmatscipy
return MatSciPy.NeighbourList(at, cutoff)
else
@warn("some warning / error message")
return nothing
end
end
And the @require statement needs to set the flag. I think that may have
to be done via Ref if I recall correctly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14?email_source=notifications&email_token=AHN4U5MO44FDCUFVI434K6LQXZYHDA5CNFSM4JYKFFAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGJ2MCI#issuecomment-563324425>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHN4U5P5MT2CNEWCF7PUUW3QXZYHDANCNFSM4JYKFFAA>
.
|
I moved the I have tested this (ASE.jl) locally on windows and it works (i.e. test pass). If you would like to extend the CI to windows (or use the previously mentioned github actions workflows), let me know. |
I think what remains to be done is to add CI to MolSimPy.jl (see JuliaMolSim/MolSimPy.jl#1) |
Many thanks - I’ll review and merge tomorrow! |
Very elegant. THank you! |
I ll register a new version later, but I’ll first want to test my other packages |
The
neighbourlist
tests were moved to the MolSimPy package and that package was added as a conditional dependency with Requires.jl as discussed in #13