Skip to content

Commit

Permalink
change cpdag back to function, add further NotImplemeted errors
Browse files Browse the repository at this point in the history
  • Loading branch information
csquires committed Jul 28, 2018
1 parent 7966b47 commit e009429
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion causaldag/classes/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ def to_amat(self):
return amat, node_list

# === optimal interventions
@property
def cpdag(self):
from .cpdag import CPDAG
return CPDAG(self)
Expand Down
3 changes: 3 additions & 0 deletions causaldag/classes/gaussdag.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ def remove_node(self, node, ignore_error=False):
super().remove_node(node)

def add_arcs_from(self, arcs):
raise NotImplementedError
pass

def add_nodes_from(self, nodes):
raise NotImplementedError
pass

def reverse_arc(self, i, j, ignore_error=False):
raise NotImplementedError
pass

def _ensure_precision(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name='causaldag',
version='0.1a.3',
version='0.1a.5',
description='Causal DAG manipulation and inference',
long_description='CausalDAG is a Python package for the creation, manipulation, and learning of Causal DAGs.',
url='http://github.com/storborg/funniest',
Expand Down

0 comments on commit e009429

Please sign in to comment.