-
Notifications
You must be signed in to change notification settings - Fork 61
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
hiding import_from
preamble to a submodule?
#385
Comments
We have |
great. Accept PR? module Spin
using SymPy
import PyCall
#
# include("wigner_functions.jl")
PyCall.pyimport_conda("sympy.physics.quantum.spin", "sympy")
import_from(sympy.physics.quantum.spin, (:WignerD,), typ=:Any)
#
export clebsch_gordan
#
# include("clebshes.jl")
PyCall.pyimport_conda("sympy.physics.wigner", "sympy")
import_from(sympy.physics.wigner)
#
wignerD(j,m1,m2,alpha,beta,gamma) = WignerD(j,m1,m2,alpha,beta,gamma).doit()
wignerd(j,m1,m2,theta) = WignerD(j,m1,m2,0,theta,0).doit()
#
export wignerD, wignerd
end |
Yes, along those lines.
On Sat, Nov 14, 2020 at 1:11 PM Misha Mikhasenko ***@***.***> wrote:
great. Accept PR?
Something in this spirit?
module Spin
using SymPyimport PyCall## include("wigner_functions.jl")
PyCall.pyimport_conda("sympy.physics.quantum.spin", "sympy")import_from(sympy.physics.quantum.spin, (:WignerD,), typ=:Any)#export clebsch_gordan## include("clebshes.jl")
PyCall.pyimport_conda("sympy.physics.wigner", "sympy")import_from(sympy.physics.wigner)#WignerD(j,m1,m2,theta) = WignerD(j,m1,m2,0,theta,0).doit()Wignerd(j,m1,m2,theta) = WignerD(j,m1,m2,0,theta,0).doit()#export WignerD, Wignerd
end
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#385 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6TEND7USWJF2I3KOHITSP3B3TANCNFSM4TVQDE7Q>
.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
[email protected]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to use Clebsch-Gordan coefficients (
clebsch_gordan
) and Wigner D (WignerD
), I have to start my notebook with the 8 lines block.I would love to have it defined in the package and just use
using SymPy.Physics
orusing SymPy.Spin
, or something similar.Any good suggestions?
The text was updated successfully, but these errors were encountered: