Exemple #1
0
 def loadClicked(self):
     if not self.data_in_table:
         if self.lineEdit.text() == "":
             Control.errorMessage("Please insert your data directory path.")
             return
         else:
             Control.createInstances()
         if len(S2.images) == 0:
             Control.errorMessage(
                 "No satellite images of Sentinel 2 were found.")
         else:
             self.data_in_table = True
         self.createTable()
     else:
         Control.infoMessage(
             "Data from the input directory have already been loaded.")