Skip to content

Commit

Permalink
stubs for csv/gml
Browse files Browse the repository at this point in the history
  • Loading branch information
chandlersquires committed Jan 8, 2021
1 parent fb3c5e1 commit 6322cc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions causaldag/classes/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,10 +1486,19 @@ def confusion_matrix_skeleton(self, other):
return res

# === WRITING TO FILES
@classmethod
def from_gml(cls, filename):
raise NotImplementedError

@classmethod
def from_csv(cls, filename):
raise NotImplementedError

def save_gml(self, filename):
"""
TODO
"""
raise NotImplementedError
warn_untested() # TODO: ADD TEST

tab = ' '
Expand Down Expand Up @@ -1530,6 +1539,7 @@ def to_csv(self, filename):
"""
TODO
"""
raise NotImplementedError
warn_untested() # TODO: ADD TEST

with open(filename, 'w', newline='\n') as file:
Expand Down

0 comments on commit 6322cc0

Please sign in to comment.