Skip to content
Snippets Groups Projects
Commit 1ad0b6c1 authored by Loïc Le Guyader's avatar Loïc Le Guyader
Browse files

Warns when not using 16 worker

parent 8897083c
No related branches found
No related tags found
1 merge request!76Extra data and xfel kernel
...@@ -43,9 +43,9 @@ class DSSC: ...@@ -43,9 +43,9 @@ class DSSC:
self.aspect = self.px_pitch_v/self.px_pitch_h # aspect ratio of the DSSC images self.aspect = self.px_pitch_v/self.px_pitch_h # aspect ratio of the DSSC images
self.geom = None self.geom = None
self.mask = None self.mask = None
self.max_fraction_memory = 0.8 self.max_fraction_memory = 0.4
self.filter_mask = None self.filter_mask = None
self.Nworker = 6 self.Nworker = 16
print('DSSC configuration') print('DSSC configuration')
print(f'Topic: {self.topic}') print(f'Topic: {self.topic}')
...@@ -321,6 +321,13 @@ class DSSC: ...@@ -321,6 +321,13 @@ class DSSC:
do_pulse_mean=do_pulse_mean do_pulse_mean=do_pulse_mean
)) ))
if self.Nworker != 16:
with warnings.catch_warnings():
warnings.simplefilter("default")
warnings.warn(('Nworker other than 16 known to cause issue' +
'(https://in.xfel.eu/gitlab/SCS/ToolBox/merge_requests/76)'),
RuntimeWarning)
timestamp = strftime('%X') timestamp = strftime('%X')
print(f'start time: {timestamp}') print(f'start time: {timestamp}')
......
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