Skip to content
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

rand(DAMap, spin=true) throws error. #25

Closed
DavidSagan opened this issue May 17, 2024 · 2 comments
Closed

rand(DAMap, spin=true) throws error. #25

DavidSagan opened this issue May 17, 2024 · 2 comments

Comments

@DavidSagan
Copy link
Member

julia> d = Descriptor(2,2)  # 2 variables, 2nd order
GTPSA Descriptor
-----------------------
Maximum order:     2
# Variables:       2

julia> m = rand(DAMap, spin=true) # Rand symplectic map including spin
ERROR: MethodError: no method matching rand(::Type{DAMap}; spin::Bool)

Closest candidates are:
  rand(::Type{X}, ::Integer, ::Integer...) where X got unsupported keyword argument "spin"
   @ Random /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/Random/src/Random.jl:294
  rand(::Type{X}, ::Tuple{Vararg{Int64, N}} where N) where X got unsupported keyword argument "spin"
   @ Random /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/Random/src/Random.jl:291
  rand(::Type{X}) where X got unsupported keyword argument "spin"
   @ Random /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/Random/src/Random.jl:261
  ...

Stacktrace:
 [1] top-level scope
   @ REPL[6]:1

@mattsignorelli
Copy link
Contributor

This I added yesterday for the example, but haven't pushed yet. Will push soon

@mattsignorelli
Copy link
Contributor

1e753fb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants