semiautomaticgit/SemiAutomaticClassificationPlugin

Uncaught UnboundLocalError: local variable 'r' referenced before assignment

joelruma73 opened this issue · 2 comments

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "/Users/jose.elkin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 1736, in pointerClickROI
    self.createROI(cfg.pntROI)
  File "/Users/jose.elkin/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/SemiAutomaticClassificationPlugin/dock/scpdock.py", line 2848, in createROI
    if cfg.np.count_nonzero(r) > 0:
UnboundLocalError: local variable 'r' referenced before assignment

SemiAutomaticClassificationPlugin 7.10.11, QGIS 3.30.2-'s-Hertogenbosch on Darwin 22.5.0

I'm closing this because of the new version 8 of SCP.
Please reopen it if it is still relevant in the new version.
Thank you!