Skip to content

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

Closed
@DavidSagan

Description

@DavidSagan
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions