minor changes to derivative and some type assertions #129
Annotations
10 errors, 6 warnings, and 1 notice
Julia 1.10 - ubuntu-latest - x64 - push
Process completed with exit code 1.
|
Julia 1.9 - ubuntu-latest - x64 - push
Process completed with exit code 1.
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/plotting.md:21-58
```@example plotting
using NamedTrajectories
# define the number timestamps
T = 100
Δt = 0.1
ts = [0:T-1...] * Δt
# define sinusoidal state trajectories
X = zeros(3, T)
X[1, :] = sin.(3 * 2π * ts / (2 * (T - 1) * Δt))
X[2, :] = -sin.(5 * 2π * ts / (2 * (T - 1) * Δt))
X[3, :] = sin.(9 * 2π * ts / (2 * (T - 1) * Δt))
# define gaussian shaped controls
U = stack(
[
exp.(-((ts .- ts[length(ts)÷3]) / 2.0).^2) .* sin.(5.0 * ts),
exp.(-((ts .- ts[2(length(ts)÷3)]) / 1.5).^2) .* sin.(4.0 * ts)
];
dims=1
)
V = exp.(-((ts .- ts[length(ts)÷2]) ./ 1.5).^2) .* sin.(6.0 * ts)
# create the trajectory
traj = NamedTrajectory(
(
x=X,
u=U,
v=V
);
timestep=Δt,
controls=(:u, :v)
)
# plot the trajectory
plot(traj)
```
exception =
AssertionError: all([eltype(v) isa Real for v = values(comps)])
Stacktrace:
[1] NamedTrajectory(comps::@NamedTuple{x::Matrix{Float64}, u::Matrix{Float64}, v::Vector{Float64}}; kwargs::@kwargs{timestep::Float64, controls::Tuple{Symbol, Symbol}})
@ NamedTrajectories.StructNamedTrajectory ~/work/NamedTrajectories.jl/NamedTrajectories.jl/src/struct_named_trajectory.jl:167
[2] top-level scope
@ plotting.md:46
[3] eval
@ ./boot.jl:385 [inlined]
[4] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[5] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[6] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[7] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[8] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[9] with_logger
@ ./logging.jl:627 [inlined]
[10] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[11] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/plotting.md:64-66
```@example plotting
plot(traj, [:x, :u])
```
exception =
UndefVarError: `traj` not defined
Stacktrace:
[1] top-level scope
@ plotting.md:65
[2] eval
@ ./boot.jl:385 [inlined]
[3] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[7] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[8] with_logger
@ ./logging.jl:627 [inlined]
[9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/plotting.md:74-80
```@example plotting
transformations = OrderedDict(
:x => x -> abs.(x),
)
plot(traj, [:x]; transformations=transformations)
```
exception =
UndefVarError: `traj` not defined
Stacktrace:
[1] top-level scope
@ plotting.md:79
[2] eval
@ ./boot.jl:385 [inlined]
[3] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[7] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[8] with_logger
@ ./logging.jl:627 [inlined]
[9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/plotting.md:84-116
```@example plotting
# define the transformations
transformations = OrderedDict(
:x => [
x -> [x[1] + x[2], x[3] - x[2]],
x -> [x[1] - x[2], x[3] + x[2]]
],
)
# define the labels
transformation_labels = OrderedDict(
:x => [
"\\tilde{x}",
"\\hat{x}"
],
)
# define the titles
transformation_titles = OrderedDict(
:x => [
L"x_1 + x_2, x_3 - x_2",
L"x_1 - x_2, x_3 + x_2"
],
)
# plot the trajectory, with only the transformation and the `u` control
plot(traj, [:u];
transformations=transformations,
transformation_labels=transformation_labels,
include_transformation_labels=[[true, true]],
transformation_titles=transformation_titles,
)
```
exception =
UndefVarError: `traj` not defined
Stacktrace:
[1] top-level scope
@ plotting.md:110
[2] eval
@ ./boot.jl:385 [inlined]
[3] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[4] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[5] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[6] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[7] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[8] with_logger
@ ./logging.jl:627 [inlined]
[9] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/quickstart.md:64-84
```@example quickstart
# define the number of timesteps
T = 10
# define the knot point data as a NamedTuple of matrices
data = (
x = rand(3, T),
u = rand(2, T),
Δt = rand(T),
)
# we must specify a timestep and control variable for the NamedTrajectory
timestep = :Δt
control = :u
# we can now create a `NamedTrajectory` object
traj = NamedTrajectory(data; timestep=timestep, controls=control)
# we can return the names of the stored variables
traj.names
```
exception =
AssertionError: all([eltype(v) isa Real for v = values(comps)])
Stacktrace:
[1] NamedTrajectory(comps::@NamedTuple{x::Matrix{Float64}, u::Matrix{Float64}, Δt::Vector{Float64}}; kwargs::@kwargs{timestep::Symbol, controls::Symbol})
@ NamedTrajectories.StructNamedTrajectory ~/work/NamedTrajectories.jl/NamedTrajectories.jl/src/struct_named_trajectory.jl:167
[2] top-level scope
@ quickstart.md:80
[3] eval
@ ./boot.jl:385 [inlined]
[4] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[5] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[6] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[7] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[8] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[9] with_logger
@ ./logging.jl:627 [inlined]
[10] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[11] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
failed to run `@example` block in src/generated/quickstart.md:90-140
```@example quickstart
# define the number of timesteps
T = 10
# define the knot point data as a NamedTuple of matrices
data = (
x = rand(3, T),
u = rand(2, T),
Δt = rand(T),
)
# define initial values
initial = (
x = [1.0, 0.0, 0.0],
u = [0.0, 0.0],
)
# define final value, here just on the control
final = (
u = [0.0, 0.0],
)
# define bounds
bounds = (
x = 1.0,
u = 1.0
)
# set a goal for the state
goal = (
x = [0.0, 0.0, 1.0],
)
# we must specify a timestep and control variable for the NamedTrajectory
timestep = :Δt
control = :u
# we can now create a `NamedTrajectory` object
traj = NamedTrajectory(
data;
timestep=timestep,
controls=control,
initial=initial,
final=final,
bounds=bounds,
goal=goal
)
# we can then show the bounds
traj.goal
```
exception =
AssertionError: all([eltype(v) isa Real for v = values(comps)])
Stacktrace:
[1] NamedTrajectory(comps::@NamedTuple{x::Matrix{Float64}, u::Matrix{Float64}, Δt::Vector{Float64}}; kwargs::@kwargs{timestep::Symbol, controls::Symbol, initial::@NamedTuple{x::Vector{Float64}, u::Vector{Float64}}, final::@NamedTuple{u::Vector{Float64}}, bounds::@NamedTuple{x::Float64, u::Float64}, goal::@NamedTuple{x::Vector{Float64}}})
@ NamedTrajectories.StructNamedTrajectory ~/work/NamedTrajectories.jl/NamedTrajectories.jl/src/struct_named_trajectory.jl:167
[2] top-level scope
@ quickstart.md:128
[3] eval
@ ./boot.jl:385 [inlined]
[4] #58
@ ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:754 [inlined]
[5] cd(f::Documenter.var"#58#60"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[6] (::Documenter.var"#57#59"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:753
[7] (::IOCapture.var"#4#7"{DataType, Documenter.var"#57#59"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:161
[8] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:515
[9] with_logger
@ ./logging.jl:627 [inlined]
[10] capture(f::Documenter.var"#57#59"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer)
@ IOCapture ~/.julia/packages/IOCapture/Rzdxd/src/IOCapture.jl:158
[11] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/1HwWe/src/expander_pipeline.jl:752
|
Documentation:
../../../.julia/packages/Documenter/1HwWe/src/utilities/utilities.jl#L44
2 docstrings not included in the manual:
NamedTrajectories.Utils.integral :: Tuple{AbstractMatrix, AbstractVector}
NamedTrajectories.Utils.derivative :: Tuple{AbstractMatrix, AbstractVecOrMat}
These are docstrings in the checked modules (configured with the modules keyword)
that are not included in canonical @docs or @autodocs blocks.
|
Documentation
Process completed with exit code 1.
|
[julia-buildpkg] Caching of the julia depot was not detected
Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true`
|
Julia 1.10 - ubuntu-latest - x64 - push
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Julia 1.10 - ubuntu-latest - x64 - push
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Julia 1.9 - ubuntu-latest - x64 - push
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@v1, actions/cache@4d4ae6ae148a43d0fd1eda1800170683e9882738, pyTooling/Actions/with-post-step@adef08d3bdef092282614f3b683897cefae82ee3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Julia 1.9 - ubuntu-latest - x64 - push
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Documentation
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, julia-actions/setup-julia@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Documentation
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|