astrovascpy.io

Functions

load_graph(filename)

Load a vasculature from file.

load_graph_from_bin(filename)

Loading of a graph from a binary file using pickle.

load_graph_from_csv(node_filename, edge_filename)

Loading of node dataset and edge dataset using pandas.

load_graph_from_h5(filename)

Loading of a graph from a .h5 using PointVasculature.load_sonata.

astrovascpy.io.load_graph(filename)

Load a vasculature from file.

Parameters:

filename (str) – vasculature dataset.

Returns:

graph containing point vasculature skeleton.

Return type:

utils.Graph

Raises:

BloodFlowError – if the file object identified by filename is not in h5 format.

astrovascpy.io.load_graph_from_bin(filename)

Loading of a graph from a binary file using pickle. :param filename: vasculature dataset path. :type filename: str

Returns:

graph containing point vasculature skeleton.

Return type:

utils.Graph

astrovascpy.io.load_graph_from_csv(node_filename, edge_filename)

Loading of node dataset and edge dataset using pandas. It creates a PointVasculature graph object.

Parameters:
  • node_filename (str) – node dataset path.

  • edge_filename (str) – edge dataset path.

Returns:

graph containing point vasculature skeleton.

Return type:

utils.Graph

astrovascpy.io.load_graph_from_h5(filename)

Loading of a graph from a .h5 using PointVasculature.load_sonata. :param filename: vasculature dataset path. :type filename: str

Returns:

graph containing point vasculature skeleton.

Return type:

utils.Graph