d494134863f2adfb00716b027e489551cc2253d3,app/grandchallenge/cases/image_builders/tiff.py,,image_builder_tiff,#Any#Any#,194
Before Change
image = _create_tiff_image_entry(tiff_file=gc_file, pk=pk)
new_image_files.append(
_create_image_file(path=str(gc_file.path.absolute()), image=image)
)
if dzi_output:
After Change
// validate
try:
gc_file.validate()
if not tiff_file and not dzi_output:
raise ValidationError(
"File could not be opened by either TIFFILE or OpenSlide"
)
except ValidationError as e:
invalid_file_errors[file_path.name] = e.message // noqa: B306
continue
image = _create_tiff_image_entry(tiff_file=gc_file, pk=pk)
new_image_files = _add_image_files(
tiff_file=tiff_file,
gc_file=gc_file,
dzi_output=dzi_output,
image=image,
new_image_files=new_image_files,
)
new_folder_upload = _add_folder_uploads(
dzi_output=dzi_output,
image=image,
new_folder_upload=new_folder_upload,
)
new_images.append(image)
consumed_files.add(gc_file.path.name)
return ImageBuilderResult(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: comic/grand-challenge.org
Commit Name: d494134863f2adfb00716b027e489551cc2253d3
Time: 2020-04-30
Author: 51329283+miriam-groeneveld@users.noreply.github.com
File Name: app/grandchallenge/cases/image_builders/tiff.py
Class Name:
Method Name: image_builder_tiff
Project Name: arnomoonens/yarll
Commit Name: 444bb2bd35d333e3d9abfb51a066726dbb0f0c6c
Time: 2019-08-06
Author: arno.moonens@gmail.com
File Name: yarll/main.py
Class Name:
Method Name: run_experiment
Project Name: ilastik/ilastik
Commit Name: fcf9813198d63169d0e93c1086746645e9432218
Time: 2019-07-19
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: accept