Skip to content

Commit

Permalink
comment on all batch data functions
Browse files Browse the repository at this point in the history
  • Loading branch information
SasLeo committed Dec 1, 2021
1 parent 951cba1 commit 9549bab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions filtering/model_filtering_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ def set_data(self, inputs):
def set_area_density(self, updated_values):
self.area_update, self.density_update = updated_values

@qtc.pyqtSlot(object)
def set_batch(self, batch_data):
self.inputs, self.density_update, self.area_update = batch_data
# @qtc.pyqtSlot(object)
# def set_batch(self, batch_data):
# self.inputs, self.density_update, self.area_update = batch_data

@qtc.pyqtSlot()
def print_income(self):
Expand Down Expand Up @@ -107,7 +107,7 @@ def filter_data(self):
for i in range(temp_array.shape[1]):
self.dataset.loc[self.dataset.iloc[:, -2] == (i + 1), 'labels_plot'] = temp_array[0, i].astype(int)

def batch_processing(self):
self.import_data()
self.filter_data()
self.batch_signal.emit([self.dataset, self.summary_table, self.data_cols])
# def batch_processing(self):
# self.import_data()
# self.filter_data()
# self.batch_signal.emit([self.dataset, self.summary_table, self.data_cols])
6 changes: 3 additions & 3 deletions modules/module_four_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def __init__(self):
self.filtering_model.data_signal.connect(self.filtering_view.update_plot)
self.filtering_view.updated_labels.connect(self.filtering_model.set_area_density)
self.filtering_view.updated_labels.connect(self.filtering_model.data_update)
self.filtering_view.batch_data.connect(self.filtering_model.set_batch)
self.filtering_view.batch_data.connect(self.filtering_model.batch_processing)
self.filtering_model.batch_signal.connect(self.filtering_view.choose_storage_data_image)
# self.filtering_view.batch_data.connect(self.filtering_model.set_batch)
# self.filtering_view.batch_data.connect(self.filtering_model.batch_processing)
# self.filtering_model.batch_signal.connect(self.filtering_view.choose_storage_data_image)

# End main UI code
self.show()

0 comments on commit 9549bab

Please sign in to comment.