diff options
author | Thomas White <taw@physics.org> | 2023-12-20 13:28:53 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:34 +0100 |
commit | cbaf344d7716efb89e0edb6fbfedddf62d1fff65 (patch) | |
tree | 6a5602319528ead775d939a88539cc027d9eeab1 /julia/CrystFEL | |
parent | dfa3ecf8c416470609f97b3b2eeafc5914fc4ba8 (diff) |
Julia: Add some docstrings
Diffstat (limited to 'julia/CrystFEL')
-rw-r--r-- | julia/CrystFEL/src/indexing.jl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/julia/CrystFEL/src/indexing.jl b/julia/CrystFEL/src/indexing.jl index 7dabd15c..543246ec 100644 --- a/julia/CrystFEL/src/indexing.jl +++ b/julia/CrystFEL/src/indexing.jl @@ -34,6 +34,17 @@ function indexflags(retry, multilattice, refine, peakcheck, cellcheck) end +""" + Indexer(methods, dtempl, cell; + tolerances=(0.05,0.05,0.05,1.5,1.5,1.5), + retry=true, multilattice=false, refine=true, + peakcheck=true, cellcheck=true, + wavelength_estimate=nothing, clen_estimate=missing, + n_threads=1) + +Creates a new CrystFEL indexing engine, which you can later apply to CrystFEL +`Image` structures using `index()`. +""" function Indexer(methods, dtempl, cell; tolerances=(0.05,0.05,0.05,1.5,1.5,1.5), retry=true, multilattice=false, refine=true, peakcheck=true, cellcheck=true, wavelength_estimate=nothing, clen_estimate=missing, n_threads=1) @@ -113,6 +124,14 @@ function Indexer(methods, dtempl, cell; tolerances=(0.05,0.05,0.05,1.5,1.5,1.5), end +""" + index(image::Image, indexer::Indexer; mille=nothing) + +Index `image` using `indexer`. + +If `mille` is a valid `Mille` object, detector geometry alignment data will +be written. +""" function index(image::Image, idxr::Indexer; mille=nothing) if mille === nothing |