You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> phy.propagationSpeed
1500> phy.propagationSpeed =330 # should work, but fails
WARNING: Parameter propagationSpeed set to 1500
> phy.propagationSpeed =330.0330.0
The second one fails because:
julia>setfield!(a, :propagationSpeed, 330)
ERROR: TypeError:in setfield!, expected Float64, got a value of type Int64
Stacktrace:
[1] top-level scope
@ REPL[9]:1
julia>setfield!(a, :propagationSpeed, 330.0)
330.0
The text was updated successfully, but these errors were encountered:
Example:
Agent:
results in:
The second one fails because:
The text was updated successfully, but these errors were encountered: