719f9dcc37a8b4ffacdeb89f091349048aef8732,app/grandchallenge/algorithms/models.py,Job,create_result,#Job#,442
Before Change
def create_result(self, *, result: dict):
instance, _ = Result.objects.get_or_create(job_id=self.pk)
instance.output = result
instance.save()
def get_absolute_url(self):
return reverse("algorithms:jobs-detail", kwargs={"pk": self.pk})
After Change
return AlgorithmExecutor
def create_result(self, *, result: dict):
interface = ComponentInterface.objects.get(slug="results-json-file")
try:
output_civ = self.outputs.get(interface=interface)
output_civ.value = result
output_civ.save()
except ObjectDoesNotExist:
output_civ = ComponentInterfaceValue.objects.create(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: comic/grand-challenge.org
Commit Name: 719f9dcc37a8b4ffacdeb89f091349048aef8732
Time: 2020-06-25
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/algorithms/models.py
Class Name: Job
Method Name: create_result
Project Name: AlexsLemonade/refinebio
Commit Name: 04ec009ab9fe997ff708511fcc07a00e7d0b260c
Time: 2018-08-07
Author: miserlou@gmail.com
File Name: workers/data_refinery_workers/processors/test_geo.py
Class Name:
Method Name: prepare_illumina_job
Project Name: AlexsLemonade/refinebio
Commit Name: 0a1b0378eadeb1a9f2f3ac8b1fbe1463c7006733
Time: 2018-05-02
Author: rich@anomos.info
File Name: foreman/data_refinery_foreman/surveyor/sra.py
Class Name: SraSurveyor
Method Name: gather_all_metadata