Skip to content

Commit

Permalink
fix minor bug related to the case in which dataset is set to None, in…
Browse files Browse the repository at this point in the history
… class 'StatCondIndep'.
  • Loading branch information
Shami Nisimov authored and Shami Nisimov committed May 2, 2023
1 parent 299ac4a commit b7e6f7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion causal_discovery_utils/cond_indep_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def __init__(self,
else:
self.retained_graph = retained_edges

node_size = get_var_size(data)
node_size = None
if data is not None:
node_size = get_var_size(data)

self.data = data
self.num_records = num_records
Expand Down
2 changes: 1 addition & 1 deletion notebooks/causal_discovery_with_a_perfect_oracle.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}

0 comments on commit b7e6f7b

Please sign in to comment.