Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
onlineXPCS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dataAnalysis
onlineXPCS
Commits
ed15b532
Commit
ed15b532
authored
11 months ago
by
Jakobsen, Mads Bregenholt
Browse files
Options
Downloads
Patches
Plain Diff
added documentation comments on the mask path string
parent
15b3b0cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xpcs/src/xpcs/xpcs.py
+9
-1
9 additions, 1 deletion
xpcs/src/xpcs/xpcs.py
with
9 additions
and
1 deletion
xpcs/src/xpcs/xpcs.py
+
9
−
1
View file @
ed15b532
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment