(self, instance_list)
| 1025 | return True |
| 1026 | |
| 1027 | def check_allowed_model_run_ids(self, instance_list): |
| 1028 | if not self.allowed_model_run_id_list: |
| 1029 | return True |
| 1030 | # Check for models |
| 1031 | for instance in instance_list: |
| 1032 | if instance.get('model_run_id') is None: |
| 1033 | continue |
| 1034 | if instance.get('model_run_id') not in self.allowed_model_run_id_list: |
| 1035 | self.log['error']['model_run_id'] = 'Invalid model_run_id {} allowed runs are {}'.format( |
| 1036 | instance.get('model_run_id'), |
| 1037 | self.allowed_model_run_id_list |
| 1038 | ) |
| 1039 | return False |
| 1040 | |
| 1041 | return True |
| 1042 | |
| 1043 | def update_instance_list(self, |
| 1044 | hash_instances = True, |
no test coverage detected