Skip to content

Commit 9ddad3c

Browse files
authored
Merge pull request #2530 from kif/fast_motor_points
fix non existing fast_motor_points attribute
2 parents de595c0 + eb9bbe4 commit 9ddad3c

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

src/pyFAI/app/diff_map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
__contact__ = "Jerome.Kieffer@ESRF.eu"
3434
__license__ = "MIT"
3535
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
36-
__date__ = "27/09/2024"
36+
__date__ = "26/05/2025"
3737
__satus__ = "Production"
3838

3939
import sys
@@ -72,7 +72,7 @@ def main(args=None):
7272
window.show()
7373
sys.exit(app.exec_())
7474
else:
75-
dt.configure_worker(config["ai"])
75+
dt.configure_worker(config.ai)
7676
dt.makeHDF5()
7777
dt.process()
7878
dt.show_stats()

src/pyFAI/io/diffmap_config.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
__contact__ = "Jerome.Kieffer@ESRF.eu"
3232
__license__ = "MIT"
3333
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
34-
__date__ = "14/05/2025"
34+
__date__ = "26/05/2025"
3535
__status__ = "development"
3636
__docformat__ = 'restructuredtext'
3737

@@ -478,3 +478,21 @@ def slow_motor_range(self, value):
478478
if self.slow_motor is None:
479479
self.slow_motor = MotorRange()
480480
self.slow_motor.start, self.slow_motor.stop = value
481+
482+
@property
483+
def slow_motor_points(self):
484+
return None if self.slow_motor is None else self.slow_motor.points
485+
@slow_motor_points.setter
486+
def slow_motor_points(self, value):
487+
if self.slow_motor is None:
488+
self.slow_motor = MotorRange()
489+
self.slow_motor.points = value
490+
491+
@property
492+
def fast_motor_points(self):
493+
return None if self.fast_motor is None else self.fast_motor.points
494+
@fast_motor_points.setter
495+
def fast_motor_points(self, value):
496+
if self.fast_motor is None:
497+
self.fast_motor = MotorRange()
498+
self.fast_motor.points = value

0 commit comments

Comments
 (0)