Coverage report: 73%

Files Functions Classes

coverage.py v7.6.12, created at 2025-02-19 14:58 +0000

File function statements missing excluded coverage
causalspyne/__init__.py (no function) 1 0 0 100%
causalspyne/ancestral_acc.py ancestral_acc 17 3 0 82%
causalspyne/ancestral_acc.py (no function) 4 0 0 100%
causalspyne/ancestral_shd.py structural_hamming_distance 9 1 0 89%
causalspyne/ancestral_shd.py (no function) 5 0 0 100%
causalspyne/conf.py DynamicConfig.__init__ 2 2 0 0%
causalspyne/conf.py parse_args_and_config 13 13 0 0%
causalspyne/conf.py load_config_from_file 3 3 0 0%
causalspyne/conf.py parse 16 16 0 0%
causalspyne/conf.py test_args 2 2 0 0%
causalspyne/conf.py (no function) 8 8 0 0%
causalspyne/dag2ancestral.py pairwise_combinations 1 0 0 100%
causalspyne/dag2ancestral.py to_binary 2 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.__init__ 3 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.pre_cal_n_hop 1 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.run 8 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.is_ancestor 2 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.deal_parent 5 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.deal_children 11 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.get_list_children 4 0 0 100%
causalspyne/dag2ancestral.py DAG2Ancestral.get_list_parents 4 0 0 100%
causalspyne/dag2ancestral.py (no function) 15 0 0 100%
causalspyne/dag_gen.py GenDAG.__init__ 8 0 0 100%
causalspyne/dag_gen.py GenDAG.gen_dag 23 0 0 100%
causalspyne/dag_gen.py (no function) 9 0 0 100%
causalspyne/dag_interface.py add_prefix 3 0 0 100%
causalspyne/dag_interface.py MatDAG.__init__ 11 0 0 100%
causalspyne/dag_interface.py MatDAG._init_map 2 0 0 100%
causalspyne/dag_interface.py MatDAG.list_confounder 3 0 0 100%
causalspyne/dag_interface.py MatDAG.gen_dict_ind2node_na 6 1 0 83%
causalspyne/dag_interface.py MatDAG.check 5 2 0 60%
causalspyne/dag_interface.py MatDAG.num_nodes 1 0 0 100%
causalspyne/dag_interface.py MatDAG.gen_node_names 2 0 0 100%
causalspyne/dag_interface.py MatDAG.gen_node_names_stacked 4 0 0 100%
causalspyne/dag_interface.py MatDAG.get_node_ind 1 0 0 100%
causalspyne/dag_interface.py MatDAG.list_node_names 3 0 0 100%
causalspyne/dag_interface.py MatDAG.list_arcs 3 0 0 100%
causalspyne/dag_interface.py MatDAG.sample_node 3 0 0 100%
causalspyne/dag_interface.py MatDAG.add_arc_ind 3 0 0 100%
causalspyne/dag_interface.py MatDAG.add_arc 5 1 0 80%
causalspyne/dag_interface.py MatDAG.to_binary_csv 5 0 0 100%
causalspyne/dag_interface.py MatDAG.topological_sort 3 0 0 100%
causalspyne/dag_interface.py MatDAG.list_ind_nodes_sorted 3 0 0 100%
causalspyne/dag_interface.py MatDAG.get_list_parents_inds 4 0 0 100%
causalspyne/dag_interface.py MatDAG.get_weights_from_list_parents 3 0 0 100%
causalspyne/dag_interface.py MatDAG.__str__ 1 0 0 100%
causalspyne/dag_interface.py MatDAG.__repr__ 1 1 0 0%
causalspyne/dag_interface.py MatDAG.subgraph 5 0 0 100%
causalspyne/dag_interface.py MatDAG.visualize 1 0 0 100%
causalspyne/dag_interface.py MatDAG.list_top_names 2 0 0 100%
causalspyne/dag_interface.py MatDAG.global_arbitrary_ind2topind 2 0 0 100%
causalspyne/dag_interface.py MatDAG.top_ind2global_arbitrary 2 0 0 100%
causalspyne/dag_interface.py MatDAG.get_top_last 2 0 0 100%
causalspyne/dag_interface.py MatDAG.climb 5 0 0 100%
causalspyne/dag_interface.py MatDAG.num_confounder 1 0 0 100%
causalspyne/dag_interface.py MatDAG.list_top_order_sorted_confounder 3 0 0 100%
causalspyne/dag_interface.py (no function) 46 0 0 100%
causalspyne/dag_manipulator.py DAGManipulator.__init__ 3 0 0 100%
causalspyne/dag_manipulator.py DAGManipulator.mk_confound 22 2 0 91%
causalspyne/dag_manipulator.py DAGManipulator.add_new_edge 10 0 0 100%
causalspyne/dag_manipulator.py (no function) 5 0 0 100%
causalspyne/dag_stack_indexer.py DAGStackIndexer.__init__ 2 0 0 100%
causalspyne/dag_stack_indexer.py DAGStackIndexer.get_global_ind 1 0 0 100%
causalspyne/dag_stack_indexer.py DAGStackIndexer.stack_dags 7 0 0 100%
causalspyne/dag_stack_indexer.py fun_accum_sum 4 0 0 100%
causalspyne/dag_stack_indexer.py (no function) 7 0 0 100%
causalspyne/dag_viewer.py process_list2hide 7 2 0 71%
causalspyne/dag_viewer.py DAGView.__init__ 9 0 0 100%
causalspyne/dag_viewer.py DAGView.dag 1 0 0 100%
causalspyne/dag_viewer.py DAGView.run 6 1 0 83%
causalspyne/dag_viewer.py DAGView.hide_confounder 7 1 0 86%
causalspyne/dag_viewer.py DAGView.hide_top_order 7 0 0 100%
causalspyne/dag_viewer.py DAGView.data 1 0 0 100%
causalspyne/dag_viewer.py DAGView.mat_adj 1 0 0 100%
causalspyne/dag_viewer.py DAGView.check_if_subview_done 3 2 0 33%
causalspyne/dag_viewer.py DAGView.node_names 3 0 0 100%
causalspyne/dag_viewer.py DAGView.to_csv 5 0 0 100%
causalspyne/dag_viewer.py DAGView.list_global_inds_nodes2hide 1 0 0 100%
causalspyne/dag_viewer.py DAGView.col_inds 2 2 0 0%
causalspyne/dag_viewer.py DAGView.list_global_inds_observed 5 5 0 0%
causalspyne/dag_viewer.py DAGView.str_node2hide 6 1 0 83%
causalspyne/dag_viewer.py DAGView.visualize 4 2 0 50%
causalspyne/dag_viewer.py (no function) 31 0 0 100%
causalspyne/data_gen.py DataGen.__init__ 7 0 0 100%
causalspyne/data_gen.py DataGen.gen 11 0 0 100%
causalspyne/data_gen.py (no function) 7 0 0 100%
causalspyne/draw_dags.py draw_dags_nx 15 2 0 87%
causalspyne/draw_dags.py (no function) 4 0 0 100%
causalspyne/edge_models.py EdgeModelLinear.__init__ 1 0 0 100%
causalspyne/edge_models.py EdgeModelLinear.run 3 0 0 100%
causalspyne/edge_models.py (no function) 4 0 0 100%
causalspyne/erdo_renyi_plp.py Erdos_Renyi_PLP.__init__ 1 0 0 100%
causalspyne/erdo_renyi_plp.py Erdos_Renyi_PLP.__call__ 5 0 0 100%
causalspyne/erdo_renyi_plp.py (no function) 4 0 0 100%
causalspyne/gen_dag_2level.py GenDAG2Level.__init__ 9 0 0 100%
causalspyne/gen_dag_2level.py GenDAG2Level.populate_macro_node 4 0 0 100%
causalspyne/gen_dag_2level.py GenDAG2Level.interconnection 2 0 0 100%
causalspyne/gen_dag_2level.py GenDAG2Level.connect_macro_node_via_local_node 8 0 0 100%
causalspyne/gen_dag_2level.py GenDAG2Level.inject_additional_confounder 8 0 0 100%
causalspyne/gen_dag_2level.py GenDAG2Level.run 6 0 0 100%
causalspyne/gen_dag_2level.py (no function) 11 0 0 100%
causalspyne/implicit_gen_Sigma.py cov_to_corr 4 4 0 0%
causalspyne/implicit_gen_Sigma.py congruent 3 3 0 0%
causalspyne/implicit_gen_Sigma.py gen_sigma_y 10 10 0 0%
causalspyne/implicit_gen_Sigma.py gen_spectrum 10 10 0 0%
causalspyne/implicit_gen_Sigma.py (no function) 9 9 0 0%
causalspyne/implicit_omega.py is_diagonal 1 1 0 0%
causalspyne/implicit_omega.py is_diag_dom 7 7 0 0%
causalspyne/implicit_omega.py gen_omega 17 17 0 0%
causalspyne/implicit_omega.py get_extreme_eigenvalue 2 2 0 0%
causalspyne/implicit_omega.py (no function) 12 12 0 0%
causalspyne/implicit_omega_condition_on_w.py get_max_degree 7 7 0 0%
causalspyne/implicit_omega_condition_on_w.py gen_joint_w_omega 8 8 0 0%
causalspyne/implicit_omega_condition_on_w.py (no function) 8 8 0 0%
causalspyne/implicit_spectrum_histogram.py (no function) 15 15 0 0%
causalspyne/is_dag.py is_dag 9 1 0 89%
causalspyne/is_dag.py is_dag.dfs 11 2 0 82%
causalspyne/is_dag.py (no function) 1 0 0 100%
causalspyne/main.py gen_partially_observed 8 0 0 100%
causalspyne/main.py ordered_ind_col2global_ind 2 2 0 0%
causalspyne/main.py re_hide 25 0 0 100%
causalspyne/main.py (no function) 16 2 0 88%
causalspyne/noise_idiosyncratic.py HyperPars.gen 1 1 0 0%
causalspyne/noise_idiosyncratic.py Gaussian.__init__ 5 5 0 0%
causalspyne/noise_idiosyncratic.py Gaussian.gen 2 2 0 0%
causalspyne/noise_idiosyncratic.py Gamma.__init__ 7 2 0 71%
causalspyne/noise_idiosyncratic.py Gamma.gen 2 0 0 100%
causalspyne/noise_idiosyncratic.py Idiosyncratic.__init__ 2 0 0 100%
causalspyne/noise_idiosyncratic.py Idiosyncratic.gen 2 0 0 100%
causalspyne/noise_idiosyncratic.py (no function) 13 0 0 100%
causalspyne/poset_approach.py partitions 8 0 0 100%
causalspyne/poset_approach.py abstractions 1 1 0 0%
causalspyne/poset_approach.py (no function) 3 0 0 100%
causalspyne/py3_9_10_compatibility.py chdir 5 5 0 0%
causalspyne/py3_9_10_compatibility.py (no function) 4 4 0 0%
causalspyne/utils_causallearn_g2ancestral.py project_causallearn_g2ancestral_admg 5 5 0 0%
causalspyne/utils_causallearn_g2ancestral.py get_causalearn_order 15 15 0 0%
causalspyne/utils_causallearn_g2ancestral.py (no function) 3 3 0 0%
causalspyne/utils_closure.py transitive_closure 7 0 0 100%
causalspyne/utils_closure.py ancestor_matrix 8 0 0 100%
causalspyne/utils_closure.py (no function) 3 0 0 100%
causalspyne/utils_cov_precision.py estimate_spectrum_radius 5 5 0 0%
causalspyne/utils_cov_precision.py (no function) 2 2 0 0%
causalspyne/utils_topological_sort.py is_binary_matrix 2 0 0 100%
causalspyne/utils_topological_sort.py topological_sort 21 4 0 81%
causalspyne/utils_topological_sort.py (no function) 4 0 0 100%
causalspyne/weight.py WeightGenUniform.__init__ 3 3 0 0%
causalspyne/weight.py WeightGenUniform.gen 6 6 0 0%
causalspyne/weight.py WeightGenWishart.__init__ 2 0 0 100%
causalspyne/weight.py WeightGenWishart.gen 6 0 0 100%
causalspyne/weight.py (no function) 8 0 0 100%
causalspyne/wishart.py gen_weight_matrix 6 0 0 100%
causalspyne/wishart.py (no function) 3 0 0 100%
Total   939 256 0 73%

No items found using the specified filter.