Update google colab setup in notebooks

Undate save_all in grapher to make dest. folder if it doesn't exist
This commit is contained in:
2020-05-24 20:13:27 +02:00
parent 27b278860d
commit 5956cd0cd2
6 changed files with 8 additions and 19 deletions

View File

@@ -164,6 +164,8 @@ class Stree_grapher(Stree):
:type save_folder: str, optional
"""
self._check_fitted()
if not os.path.isdir(save_folder):
os.mkdir(save_folder)
seq = 1
for node in self:
node.save_hyperplane(save_folder=save_folder,