IO-Utils

This module provides different file handlers to load and save the needed data for the core.Surveyor.

class FileHandler[source][source]

Bases: object

Abstract base class of FileHandler.

visit_surveyor(surveyor)[source][source]
save(path)[source][source]

Save data to file.

load(path)[source][source]

Load data from file.

class NPZHandler[source][source]

Bases: bb_stitcher.io_utils.FileHandler

save(path)[source][source]

Save core.Surveyor data to numpy file ‘.npz’.

Parameters:path (str) – Path of the file, which holds the needed data.
load(path)[source][source]

Load core.Surveyor data to numpy file ‘.npz’.

Parameters:path (str) – Path of the file, which holds the needed data.
class CSVHandler[source][source]

Bases: bb_stitcher.io_utils.FileHandler

save(path)[source][source]

Save core.Surveyor data to csv file ‘.csv’.

Parameters:path (str) – Path of the file, which holds the needed data.
load(path)[source][source]

Load core.Surveyor data to csv file ‘.csv’.

Parameters:path (str) – Path of the file, which holds the needed data.
class JSONHandler[source][source]

Bases: bb_stitcher.io_utils.FileHandler

save(path)[source][source]

Save core.Surveyor data to json file ‘.json’.

Parameters:path (str) – Path of the file, which holds the needed data.
load(path)[source][source]

Load core.Surveyor data to json file ‘.json’.

Parameters:path (str) – Path of the file, which holds the needed data.
get_file_handler(path)[source][source]

Returns FileHandler in dependency of file path extension.

Parameters:path (str) – Path of the file.
Returns:file handler for load and save data from surveyor.
Return type:FileHandler