diff options
author | com-sixs <com-sixs@synchrotron-soleil.fr> | 2018-12-07 10:59:35 +0100 |
---|---|---|
committer | com-sixs <com-sixs@synchrotron-soleil.fr> | 2018-12-07 10:59:35 +0100 |
commit | 939ecfb474c7b4892dc12e7b170544185da09716 (patch) | |
tree | f0f0bb837a655150d2df45bac316b698ac213492 | |
parent | eb0affcb09ebbd45f5ac711e8ed764e804c4a13d (diff) |
[sixs] Added the QIndex projection.
-rw-r--r-- | binoculars/backends/sixs.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binoculars/backends/sixs.py b/binoculars/backends/sixs.py index 54cdf60..4f16b24 100644 --- a/binoculars/backends/sixs.py +++ b/binoculars/backends/sixs.py @@ -188,6 +188,15 @@ class Stereo(QxQyQzProjection): def get_axis_labels(self): return "Q", "Qx", "Qy" + +class QIndex(Stereo): + def project(self, index, pdataframe): + q, qx, qy = super(QIndex, self).project(index, pdataframe) + return q, numpy.ones_like(q) * index + + def get_axis_labels(self): + return "Q", "Index" + ################### # Common methodes # ################### |