From 17932ca6a6e47bc0ef52448aabf20a522ad1d459 Mon Sep 17 00:00:00 2001 From: Lan <ldam@passcal.nmt.edu> Date: Thu, 18 May 2023 11:24:31 -0600 Subject: [PATCH] remove check not found soh channels, it will be checked in multi_threaded_plotting_widget --- sohstationviewer/model/data_type_model.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sohstationviewer/model/data_type_model.py b/sohstationviewer/model/data_type_model.py index df4ccf37f..f89db45b8 100644 --- a/sohstationviewer/model/data_type_model.py +++ b/sohstationviewer/model/data_type_model.py @@ -306,7 +306,6 @@ class DataTypeModel(): self.sort_all_data() self.track_info("Combine data.", LogType.INFO) self.combine_traces_in_all_data() - self.check_not_found_soh_channels() for key in self.data_time: if self.data_time[key] == [constants.HIGHEST_INT, 0]: # this happens when there is text or ascii only in the data @@ -450,19 +449,6 @@ class DataTypeModel(): execute_db(f'UPDATE PersistentData SET FieldValue="{self.tmp_dir}" ' f'WHERE FieldName="tempDataDirectory"') - def check_not_found_soh_channels(self): - all_chans_meet_req = ( - list(self.soh_data[self.selected_key].keys()) + - list(self.mass_pos_data[self.selected_key].keys()) + - list(self.log_data[self.selected_key].keys())) - - not_found_chans = [c for c in self.req_soh_chans - if c not in all_chans_meet_req] - if not_found_chans != []: - msg = (f"No data found for the following channels: " - f"{', '.join( not_found_chans)}") - self.processing_log.append((msg, LogType.WARNING)) - def combine_times_data_of_traces_w_spr_less_or_equal_1( self, data: Dict[str, Dict], selected_key: Union[(str, str), str], data_name: str): -- GitLab