@@ -134,7 +134,7 @@ def compute_z_hat(self):
134134 n_lock = 1 if self .soft_lock == "corner" else 0
135135 lock_slices = []
136136 if self .workers_segments .effective_n_seg > 1 :
137- lock_slices = self .workers_segments .get_touched_overlap_slices (
137+ lock_slices = self .workers_segments .get_touched_overlap_slices ( # noqa
138138 pt0 , np .array (self .overlap ) +
139139 1 , self .worker_bounds ,
140140 self .worker_inner_bounds , self .worker_support
@@ -147,9 +147,9 @@ def compute_z_hat(self):
147147 ])
148148 soft_locked = max_on_lock > abs (dz )
149149
150- # Update the selected coordinate and beta, only if the update is
151- # greater than the convergence tolerance and is contained in the
152- # worker. If the update is not in the worker, this will
150+ # Update the selected coordinate and beta, only if the update
151+ # is greater than the convergence tolerance and is contained
152+ # in the worker. If the update is not in the worker, this will
153153 # effectively work has a soft lock to prevent interferences.
154154 if abs (dz ) > self .tol and not soft_locked :
155155 t_start_update = time .time ()
@@ -181,13 +181,13 @@ def compute_z_hat(self):
181181 self ._log_updates .append ((t_run , ii , self .rank ,
182182 k0 , pt_global , dz ))
183183
184- # Inactivate the current segment if the magnitude of the update is
185- # too small. This only work when using LGCD.
184+ # Inactivate the current segment if the magnitude of the
185+ # update is too small. This only work when using LGCD.
186186 if abs (dz ) <= self .tol and self .strategy == "greedy" :
187187 self .local_segments .set_inactive_segments (i_seg )
188188
189- # When workers are diverging, finish the worker to avoid having to
190- # wait until max_iter for stopping the algorithm.
189+ # When workers are diverging, finish the worker to avoid
190+ # having to wait until max_iter for stopping the algorithm.
191191 if abs (dz ) >= 1e3 :
192192 self .info ("diverging worker" )
193193 self .wait_status_changed (status = constants .STATUS_FINISHED )
0 commit comments