Commit dda343e
authored
fix(apps/nuclick): replace np.random.choice with self.R.choice in AddPointGuidanceSignald
In AddPointGuidanceSignald.exclusion_map, two calls to np.random.choice were using the global NumPy random state instead of the instance's self.R (RandomState). Since AddPointGuidanceSignald already inherits from Randomizable, replacing with self.R.choice ensures reproducibility when set_determinism() or manual seeding is used.
Ref #6888
Signed-off-by: Zeeshan Modi <92383127+Zeesejo@users.noreply.github.com>
Signed-off-by: Zeeshan Modi <92383127+Zeesejo@users.noreply.github.com>1 parent 7f6b7e5 commit dda343e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
0 commit comments