Skip to content

Commit

Permalink
trying to figure out CI runner setup
Browse files Browse the repository at this point in the history
  • Loading branch information
raamana committed Apr 26, 2024
1 parent a1429e5 commit 762b140
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions graynet/tests/test_graynet.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
if __name__ == '__main__' and __package__ is None:
pkg_dir = this_file.parents[1]
repo_dir = pkg_dir.parent
print('repo: {}\npackage: {}'.format(repo_dir, pkg_dir))
sys.path.append(pkg_dir)
sys.path.append(repo_dir)

Expand All @@ -32,7 +33,14 @@
test_dir = this_file.parent
base_dir = test_dir.joinpath('..', '..', 'example_data').resolve()

out_dir = base_dir / 'graynet'
print('test_dir: {}\n base_dir (2 levels above):{}'.format(test_dir, base_dir))

if not base_dir.exists():
raise FileNotFoundError('test resources i.e., example data not found.')

example_dir = base_dir / 'freesurfer'
sub_list = example_dir / 'list_subjects.txt'
out_dir = example_dir / 'test_outputs'
if not out_dir.exists():
out_dir.mkdir(exist_ok=True, parents=True)

Expand Down Expand Up @@ -71,13 +79,6 @@
weight_methods = ['manhattan', ]
weight_methods_orig_feat_subset = ['exp_diff_means_norm_std', ]

cur_dir = this_file.parent
example_dir = base_dir / 'freesurfer'
sub_list = example_dir / 'list_subjects.txt'
out_dir = example_dir / 'test_outputs'
if not out_dir.exists():
out_dir.mkdir(exist_ok=True, parents=True)

dimensionality = 1000
num_groups = 5

Expand Down

0 comments on commit 762b140

Please sign in to comment.