File tree Expand file tree Collapse file tree 4 files changed +16
-5
lines changed
Expand file tree Collapse file tree 4 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 66license = " Apache-2.0"
77readme = " README.md"
88homepage = " https://deephypergraph.com"
9- repository = " https://github.com/imoonlab/deephypergraph "
9+ repository = " https://github.com/iMoonLab/DeepHypergraph "
1010
1111[tool .poetry .dependencies ]
1212python = " ^3.8"
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ def test_save(g1):
2424 from pathlib import Path
2525
2626 save_path = Path ("./tmp/test_save.dhg" )
27+ if not save_path .parent .exists ():
28+ save_path .parent .mkdir ()
2729 g1 .save (save_path )
2830 g2 = load_structure (save_path )
2931
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def test_save(g1):
2626 from pathlib import Path
2727
2828 save_path = Path ("./tmp/test_save.dhg" )
29+ if not save_path .parent .exists ():
30+ save_path .parent .mkdir ()
2931 g1 .save (save_path )
3032 g2 = load_structure (save_path )
3133
Original file line number Diff line number Diff line change 11import pytest
22import numpy as np
3+ from pathlib import Path
34
45import dhg .visualization as vis
56
@@ -10,14 +11,20 @@ def emb1():
1011
1112
1213def test_draw_in_euclidean_space (emb1 ):
14+ tmp_path = Path ("tmp/" )
15+ if not tmp_path .exists ():
16+ tmp_path .mkdir ()
1317 fig = vis .draw_in_euclidean_space (emb1 )
14- fig .savefig ("tmp/ test_draw_in_euclidean_space.png" )
18+ fig .savefig (tmp_path / " test_draw_in_euclidean_space.png" )
1519 fig = vis .draw_in_euclidean_space (emb1 , dim = 3 )
16- fig .savefig ("tmp/ test_draw_in_euclidean_space_3d.png" )
20+ fig .savefig (tmp_path / " test_draw_in_euclidean_space_3d.png" )
1721
1822
1923def test_draw_poincare_ball (emb1 ):
24+ tmp_path = Path ("tmp/" )
25+ if not tmp_path .exists ():
26+ tmp_path .mkdir ()
2027 fig = vis .draw_in_poincare_ball (emb1 )
21- fig .savefig ("tmp/ test_draw_poincare_ball.png" )
28+ fig .savefig (tmp_path / " test_draw_poincare_ball.png" )
2229 fig = vis .draw_in_poincare_ball (emb1 , dim = 3 )
23- fig .savefig ("tmp/ test_draw_poincare_ball_3d.png" )
30+ fig .savefig (tmp_path / " test_draw_poincare_ball_3d.png" )
You can’t perform that action at this time.
0 commit comments