Skip to content

Commit

Permalink
try to resolve failing test
Browse files Browse the repository at this point in the history
ERROR trtools/testsupport/sample_vcfs/associaTR/generate_traits.py - FileNotFoundError: [Errno 2] No such file or directory: 'samples.txt'
  • Loading branch information
aryarm authored Oct 30, 2023
1 parent 38565e8 commit aaddb38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trtools/testsupport/sample_vcfs/associaTR/generate_traits.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/usr/bin/env python3

import pathlib
import numpy as np
import numpy.random

seed = 2

with open('samples.txt') as samples_file:
SCRIPT_DIR = pathlib.Path(__file__).parent.resolve()

with open(SCRIPT_DIR / 'samples.txt') as samples_file:
samples = np.array([int(sample.strip()) for sample in samples_file.readlines() if 'IID' not in sample])
n_samples = len(samples)

Expand Down

0 comments on commit aaddb38

Please sign in to comment.