diff options
Diffstat (limited to 'julia/CrystFEL/src/image.jl')
-rw-r--r-- | julia/CrystFEL/src/image.jl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/julia/CrystFEL/src/image.jl b/julia/CrystFEL/src/image.jl new file mode 100644 index 00000000..e73e5f9a --- /dev/null +++ b/julia/CrystFEL/src/image.jl @@ -0,0 +1,34 @@ +module Images +export Image + +guardian = [] + +function protect(guardian, obj) + push!(guardian, obj) + obj +end + +function unprotect(guardian, obj) + let pos = findfirst(==(obj), guardian) + if pos !== nothing + deleteat!(guardian, pos) + end + end +end + + +mutable struct Image +end + + +""" + Image() + +Create a CrystFEL image structure +""" +function Image(panels) + + +end + +end # of module |