SunnySuite / Sunny.jl

Spin dynamics and generalization to SU(N) coherent states
Other
86 stars 19 forks source link

`spin_operators` / 'stevens_operators' not defined #138

Closed ilijanikolov closed 1 year ago

ilijanikolov commented 1 year ago

I have imported using Sunny, GLMakie, LinearAlgebra

and I keep getting the error message: UndefVarError: spin_operators not defined Stacktrace: [1] getproperty(x::Module, f::Symbol) @ Base .\Base.jl:31

ERROR: UndefVarError: stevens_operators not defined Stacktrace: [1] top-level scope

Using Sunny 0.4.3, Julia 1.9.2

kbarros commented 1 year ago

This is a new feature of Sunny 0.5. From the Julia prompt you should be able to enter the package manager with ] and then type update Sunny to get the latest version. Please let us know how it goes.

kbarros commented 1 year ago

Actually, there was a snag with the 0.5.0 release. Will let you know when it's fixed.

kbarros commented 1 year ago

The registration finally went through. You should be able to ] update to Sunny 0.5.0 now.

ilijanikolov commented 1 year ago

Thank you! It seems to be working now. Although I did get this error during update 1 dependency had warnings during precompilation: ┌ LinearMapsChainRulesCoreExt [80cc3b07-7966-5fa1-b050-64b4b3e87554] │ ┌ Error: Error during loading of extension LinearMapsSparseArraysExt of LinearMaps, use Base.retry_load_extensions() to retry. │ │ exception = │ │ 1-element ExceptionStack

Thanks!

kbarros commented 1 year ago

Glad it worked. Not sure about that reported error with LinearMaps. Sometimes it's a bit of a dance to get Julia to recognize all the packages. Usually an ] update will fix things. Feel free to ask again if more problems show up.