semiautomaticgit / SemiAutomaticClassificationPlugin

https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html
Other
136 stars 50 forks source link

Uncaught UnboundLocalError: local variable 'r' referenced before assignment #278

Closed joelruma73 closed 10 months ago

joelruma73 commented 10 months ago

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

semiautomaticgit commented 10 months ago

duplicate of #277