IO-Utils¶
This module provides different file handlers
to load and save the needed data for the core.Surveyor.
-
class
NPZHandler[source][source]¶ Bases:
bb_stitcher.io_utils.FileHandler-
save(path)[source][source]¶ Save
core.Surveyordata to numpy file ‘.npz’.Parameters: path (str) – Path of the file, which holds the needed data.
-
load(path)[source][source]¶ Load
core.Surveyordata 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.Surveyordata to csv file ‘.csv’.Parameters: path (str) – Path of the file, which holds the needed data.
-
load(path)[source][source]¶ Load
core.Surveyordata 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.Surveyordata to json file ‘.json’.Parameters: path (str) – Path of the file, which holds the needed data.
-
load(path)[source][source]¶ Load
core.Surveyordata 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