219836ccac7852a51df3f8b3b26c1e43f1f559c2,app/grandchallenge/cases/image_builders/tiff.py,,image_builder_tiff,#Any#Any#,217

Before Change


    def format_error(message):
        return f"Tiff image builder: {message}"

    for file_path in path.iterdir():
        pk = uuid4()
        dzi_output = None
        tiff_file = None

After Change


    for gc_file in loaded_files:
        dzi_output = None
        error = ""
        if gc_file.path in errors:
            error = errors[gc_file.path]

        // try and load image with tiff file
        try:
            gc_file = _load_with_tiff(gc_file=gc_file)
        except Exception as e:
            error += f"Load error: {e}. "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: comic/grand-challenge.org
Commit Name: 219836ccac7852a51df3f8b3b26c1e43f1f559c2
Time: 2020-05-21
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: snipsco/snips-nlu
Commit Name: 6d82c09772893aa5aa1842c4ef0132bb96f8d605
Time: 2018-07-10
Author: Adrien@MacBook-Pro-de-Adrien.local
File Name: snips_nlu/nlu_engine/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: from_path


Project Name: catalyst-cooperative/pudl
Commit Name: f967bd87424bbc50f475d5959994a5743ae2af0e
Time: 2019-12-28
Author: zane.selvans@catalyst.coop
File Name: src/pudl/convert/epacems_to_parquet.py
Class Name:
Method Name: epacems_to_parquet