892cdf893a4b3c4705a1b3aba1ca2691041bfe18,niftynet/engine/application_iteration.py,IterationMessage,to_console_string,#IterationMessage#,165

Before Change


        
        summary_indentation = "    " if self.is_validation else ""
        summary_format = summary_indentation + CONSOLE_FORMAT
        result_str = _console_vars_to_str(self.current_iter_output[CONSOLE])
        summary = summary_format.format(
            self.phase, self.current_iter, result_str, self.iter_duration)
        return summary

After Change


        
        summary_indentation = "    " if self.is_validation else ""
        summary_format = summary_indentation + CONSOLE_FORMAT
        console_content = ""
        try:
            console_content = self.current_iter_output.get(CONSOLE, "")
        except AttributeError:
            console_content = "print to console -- set current_iter_output " \
                              "to a dictionary of {CONSOLE: "content"}."
        result_str = _console_vars_to_str(console_content)
        summary = summary_format.format(
            self.phase, self.current_iter, result_str, self.iter_duration)
        return summary
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: NifTK/NiftyNet
Commit Name: 892cdf893a4b3c4705a1b3aba1ca2691041bfe18
Time: 2018-01-23
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_iteration.py
Class Name: IterationMessage
Method Name: to_console_string


Project Name: NifTK/NiftyNet
Commit Name: d9d4e748db9d4db46b4a1f737e2d6533f9c2affe
Time: 2018-01-24
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_iteration.py
Class Name: IterationMessage
Method Name: to_console_string


Project Name: NifTK/NiftyNet
Commit Name: eb52e96ec64174ff8927114d3ca874f9419395e3
Time: 2018-01-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_iteration.py
Class Name: IterationMessage
Method Name: to_console_string