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

Method task_update

shared/annotation.py:1969–2012  ·  view source on GitHub ↗

careful, if we do end up changing the file here this needs to run before file_init () or handle the parent video vs image better... Caution, this assumes that file is the 'parent' file, ie video or image. if this is run after when it's an image then it will

(self)

Source from the content-addressed store, hash-verified

1967 return instance
1968
1969 def task_update(self):
1970 """
1971 careful, if we do end up changing the file here this needs to run
1972 before file_init () or handle the parent video vs image better...
1973
1974 Caution, this assumes that file is the 'parent' file,
1975 ie video or image.
1976 if this is run after when it's an image then it will create issues
1977 ie just returning an image.
1978
1979 The context is that IF we want to do this here (instead of a time of provisioning) so we can copy
1980 instances for review file
1981
1982 Context of realizing it was resetting it to an image / copying
1983 image and that was a lot of the confusion.
1984
1985 """
1986
1987 if not self.task:
1988 return
1989
1990 if self.task.task_type == 'review':
1991
1992 # if self.task.file_id == self.task.root(self.session).file_id: # and not yet new file
1993
1994 # this was moved to task_new.py
1995 # pass
1996
1997 if self.task.job_type == "Exam":
1998 # Not sure if this is a good way to do it or not,
1999 # assumption is that the everything else is "frozen" so this
2000 # is just a way to track things like "missing" attribute?
2001
2002 # Context of a process (human, auto etc) marking an instance
2003 # from the gold standard. ie "missing" flag (could be others)
2004 # Many exams to original gold standard which we can't modify
2005 # And don't want to create a ton of new instances / files
2006 # (alternative is to make a copy of the gold standard file for everything
2007 # but that seems like over kill and could confuse things since it's not really changing...
2008
2009 self.task.gold_standard_file = self.gold_standard_file
2010
2011 task_exam_stats(task = self.task,
2012 instance_list = self.instance_list_new)
2013
2014 def sequence_update(self,
2015 instance = None,

Callers 1

__post_init__Method · 0.95

Calls 1

task_exam_statsFunction · 0.85

Tested by

no test coverage detected