rk_comparison.core.saving_module package

Submodules

rk_comparison.core.saving_module.save_data module

class rk_comparison.core.saving_module.save_data.SaveData[source]

Bases: object

Class to prepare and save data to opened file.

add_results(controller, results, cmp)[source]

Method adds lists of results of calculations or comparison to results list.

add_space(results, whitespaces_count)[source]

Method adds list of whitespaces to results.

add_statistics(results, statistics_result, name, whitespaces_count)[source]

Method adds a list with one of the statistics results to the results list.

add_statistics_descriptions(controller, results, whitespaces_count)[source]

Method adds the list with names of methods used during calculations to results list. Whitespaces are added for list to match the overall lists length.

prepare_data(controller)[source]

Method calls various methods to prepare parts of results and returns created list. It also adds a time list at the beginning. Returns the prepared list.

save(file, controller)[source]

Method loops through the nested lists of data and saves it in the csv file. Each list is a column.

Module contents