Commit b7fa512d authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Update exports

parent 50c1494e
......@@ -13,6 +13,17 @@
module DeformableMirrors
export
AbstractDeformableMirror,
DeformableMirror,
device,
layout,
reference,
reset,
set_reference!,
send,
send!
using ..Tao
using ..Tao: indexed_layout
import ..Tao: send!, reference, set_reference!, device, layout
......@@ -53,7 +64,7 @@ end
yields an instance of `Tao.DeformableMirror` using device `dev` for sending
commands and assuming the layout of the actuators is given by calling
[`Tao.indexedlayout`](@ref) with the subsequent arguments and, possibly, with
[`Tao.indexed_layout`](@ref) with the subsequent arguments and, possibly, with
keyword `orient` which specifies the orientation of the actuators numbering.
The encapsulation by `Tao.DeformableMirror` is to implement a common interface
......@@ -147,7 +158,7 @@ function DeformableMirror(::Type{T},
inds::AbstractMatrix{<:Integer}) where {T<:Real,M}
len = length(dev)
isa(len, Integer) && len > 0 || error("invalid number of actuators")
cnt, xinds = indexedlayout(inds)
cnt, xinds = indexed_layout(inds)
cnt == len || error("invalid number of non-zero indices")
return DeformableMirror{T,M}(dev, len, xinds)
end
......@@ -158,7 +169,7 @@ function DeformableMirror(::Type{T},
orient::Integer = 0) where {T<:Real,M}
len = length(dev)
isa(len, Integer) && len > 0 || error("invalid number of actuators")
cnt, xinds = indexedlayout(msk, orient)
cnt, xinds = indexed_layout(msk, orient)
cnt == len || error("invalid number of true values in mask")
return DeformableMirror{T,M}(dev, len, xinds)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment