Skip to content

Commit

Permalink
Removed gitpython
Browse files Browse the repository at this point in the history
  • Loading branch information
simongravelle committed Sep 11, 2024
1 parent 91ba19d commit 35cea93
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
gitpython
pytest
7 changes: 0 additions & 7 deletions tests/test_converter.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import numpy as np
import os
#import git

# detect the location of the Git repository
#current_path = os.getcwd()
#git_repo = git.Repo(current_path, search_parent_directories=True)
#git_path = git_repo.git.rev_parse("--show-toplevel")

# import countoscope
from countoscope import Countoscope
Expand Down
11 changes: 2 additions & 9 deletions tests/test_ideal_cases.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import numpy as np
import os
import git

# detect the location of the Git repository
current_path = os.getcwd()
git_repo = git.Repo(current_path, search_parent_directories=True)
git_path = git_repo.git.rev_parse("--show-toplevel")

# import countoscope
from countoscope import Countoscope
Expand All @@ -21,9 +14,9 @@
"expected_mean_of_N_squared": 1.0,
"expected_correlation_value": 1.0,
"expected_delta_n2": 0.0,
"filename_xyz": git_path+"/datasets/"\
"filename_xyz": "../datasets/"\
+"ideal-cases/three-sliding-particles/dump.xyz",
"filename_lammpstrj": git_path+"/datasets/"\
"filename_lammpstrj": "../datasets/"\
+"ideal-cases/three-sliding-particles/dump.lammpstrj"}

def apply_countoscope(box_size=np.array([10, 10, 10])):
Expand Down

0 comments on commit 35cea93

Please sign in to comment.