astrovascpy.report_writer

Functions

write_merged_report(input_filename, ...[, pairs])

Write a combined report in sonata format.

write_report(report, node_ids, start_time, ...)

Write simulation report in sonata format.

write_simulation_report(node_ids, ...)

Write simulation report in sonata format.

astrovascpy.report_writer.write_merged_report(input_filename, report_folder, subgraphs, types, entry_nodes, edges_bifurcations, pairs=None)

Write a combined report in sonata format.

Parameters:
  • input_filename (path) – folder containing the sonata graph.

  • report_folder (path) – folder containing the sonata report.

  • subgraphs (numpy.array) – (nb_edges, ) ids of subgraphs group for big vessels.

  • types (numpy.array) – (vessels_type,) array of vessels’ type id.

  • entry_nodes (numpy.array) – (nb_entry_nodes,) ids of entry nodes for the inflow.

  • edges_bifurcations (numpy.array) – (nb_edges, ) ids of edges forming bifurcations.

  • pairs (numpy.array) – (nb_pairs, ) ids of nodes forming pairs of nodes.

astrovascpy.report_writer.write_report(report, node_ids, start_time, end_time, time_step)

Write simulation report in sonata format.

Parameters:
  • report (Report) – folder containing the 3 sonata reports.

  • node_ids (numpy.array) – id of each edge of the vasculature.

  • start_time (float) – beginning of simulation.

  • end_time (float) – end of simulation.

  • time_step (float) – time step of simulation.

astrovascpy.report_writer.write_simulation_report(node_ids, report_folder, start_time, end_time, time_step, flows, pressures, radii, volumes)

Write simulation report in sonata format.

Parameters:
  • node_ids (numpy.array) – id of each edge of the vasculature.

  • report_folder (path) – folder containing the 3 sonata reports.

  • start_time (float) – beginning of simulation.

  • end_time (float) – end of simulation.

  • time_step (float) – time step of simulation.

  • flows (numpy.array) – flow values at each time-step for each edge.

  • pressures (numpy.array) – pressure values at each time-step for each node.

  • radii (numpy.array) – radius values at each time-step for each edge.

  • volumes (numpy.array) – volume values at each time-step for each edge.