MCPcopy Index your code
hub / github.com/diffgram/diffgram / check_allowed_model_run_ids

Method check_allowed_model_run_ids

shared/annotation.py:1027–1041  ·  view source on GitHub ↗
(self, instance_list)

Source from the content-addressed store, hash-verified

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,

Callers 1

update_instance_listMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected