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

Method get_gold_standard_file

shared/database/task/task.py:867–882  ·  view source on GitHub ↗

Main place getting gold standard is for exam comparisons BUT this could be useful for future more advanced auto test auto grade things, even for normal work

(self)

Source from the content-addressed store, hash-verified

865 }
866
867 def get_gold_standard_file(self):
868 """
869 Main place getting gold standard is for exam comparisons
870 BUT this could be useful for future more advanced auto test auto grade things,
871 even for normal work
872
873 """
874 gold_standard_file = None
875
876 if self.gold_standard_file: # Try cache first
877 return self.gold_standard_file
878
879 if self.file_original:
880 gold_standard_file = self.file_original.serialize_annotations_only()
881
882 return gold_standard_file
883
884 @staticmethod
885 def new(session,

Callers 1

Calls 1

Tested by

no test coverage detected