From c544fefde6dafba46c53b64acccab543aa8ec8a2 Mon Sep 17 00:00:00 2001 From: Thomas Milburn Date: Thu, 12 Oct 2023 15:59:37 +0100 Subject: [PATCH] Updated docstrings which are missing choices (#507) * Added more choices to comments --------- Co-authored-by: Thomas Milburn --- archive/cuda_extension/engines/DM_gpu.py | 1 + archive/cuda_extension/engines/DM_npy.py | 1 + archive/engines/DM.py | 1 + ptypy/core/data.py | 2 ++ ptypy/core/illumination.py | 1 + ptypy/core/manager.py | 4 ++++ ptypy/core/ptycho.py | 4 ++++ ptypy/core/sample.py | 1 + ptypy/engines/base.py | 1 + ptypy/engines/projectional.py | 1 + 10 files changed, 17 insertions(+) diff --git a/archive/cuda_extension/engines/DM_gpu.py b/archive/cuda_extension/engines/DM_gpu.py index 399eb143c..9e81ad7fa 100644 --- a/archive/cuda_extension/engines/DM_gpu.py +++ b/archive/cuda_extension/engines/DM_gpu.py @@ -57,6 +57,7 @@ class DMGpu(DMNpy): default = 'linear' type = str help = Subpixel interpolation; 'fourier','linear' or None for no interpolation + choices = ['fourier','linear',None] [update_object_first] default = True diff --git a/archive/cuda_extension/engines/DM_npy.py b/archive/cuda_extension/engines/DM_npy.py index f601a46dd..6fce4bc5d 100644 --- a/archive/cuda_extension/engines/DM_npy.py +++ b/archive/cuda_extension/engines/DM_npy.py @@ -55,6 +55,7 @@ class DMNpy(DM): default = 'linear' type = str help = Subpixel interpolation; 'fourier','linear' or None for no interpolation + choices = ['fourier','linear',None] [update_object_first] default = True diff --git a/archive/engines/DM.py b/archive/engines/DM.py index 50936bd42..1124158a2 100644 --- a/archive/engines/DM.py +++ b/archive/engines/DM.py @@ -55,6 +55,7 @@ class DM(PositionCorrectionEngine): default = 'linear' type = str help = Subpixel interpolation; 'fourier','linear' or None for no interpolation + choices = ['fourier','linear',None] [update_object_first] default = True diff --git a/ptypy/core/data.py b/ptypy/core/data.py index 636857bca..288def4bf 100644 --- a/ptypy/core/data.py +++ b/ptypy/core/data.py @@ -114,6 +114,7 @@ class PtyScan(object): default = data help = Determines what will be loaded in parallel doc = Choose from ``None``, ``'data'``, ``'common'``, ``'all'`` + choices = ['data', 'common', 'all'] [rebin] type = int @@ -139,6 +140,7 @@ class PtyScan(object): Alternatively, a 3-tuple of booleans may be provided ``(do_transpose, do_flipud, do_fliplr)`` + choices = [0, 1, 2, 3, 4, 5, 6, 7] userlevel = 1 [min_frames] diff --git a/ptypy/core/illumination.py b/ptypy/core/illumination.py index af5d4c06b..ddf1f98f7 100644 --- a/ptypy/core/illumination.py +++ b/ptypy/core/illumination.py @@ -130,6 +130,7 @@ - *