Skip to content
Snippets Groups Projects
Commit ed15b532 authored by Jakobsen, Mads Bregenholt's avatar Jakobsen, Mads Bregenholt
Browse files

added documentation comments on the mask path string

parent 15b3b0cc
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ import time ...@@ -2,7 +2,7 @@ import time
from pathlib import Path from pathlib import Path
import numpy as np import numpy as np
from karabo.bound import NODE_ELEMENT, NDARRAY_ELEMENT, STRING_ELEMENT from karabo.bound import NODE_ELEMENT, NDARRAY_ELEMENT, STRING_ELEMENT, DOUBLE_ELEMENT
from fastXPCS.algos import TTCdata, do_sparse_train from fastXPCS.algos import TTCdata, do_sparse_train
from fastXPCS.fxpcs_sparse import sparsify, sparsify2 from fastXPCS.fxpcs_sparse import sparsify, sparsify2
...@@ -26,6 +26,14 @@ class Xpcs(BaseCorrectionAddon): ...@@ -26,6 +26,14 @@ class Xpcs(BaseCorrectionAddon):
@staticmethod @staticmethod
def extend_device_schema(schema, prefix): def extend_device_schema(schema, prefix):
( (
# TODO: how do the users want to input the q ranges for which XPCS should be computed?
# option 1: with a mask with unique values for each q range?
# option 2: with a list of q range intervals?
# option 3: with a list of q values that should then be interpolated into intervals?
# option 4: with a start and end q-value and number of bins?
# path no a npy file that contains a mask for what pixels to use for the XPCS.
# currently this may only be filled with 1's and 0's
STRING_ELEMENT(schema) STRING_ELEMENT(schema)
.key(f"{prefix}.mask_path") .key(f"{prefix}.mask_path")
.tags("managed") .tags("managed")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment