Skip to content

Commit

Permalink
removed old test files
Browse files Browse the repository at this point in the history
  • Loading branch information
kristyhoran committed Aug 7, 2023
1 parent 5329ee2 commit 25850a0
Show file tree
Hide file tree
Showing 169 changed files with 31 additions and 354 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
python_requires=">=3.8, <4",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
zip_safe=False,
install_requires=["pandas","xlsxwriter","psutil","tqdm","requests"],
install_requires=["pandas","xlsxwriter","psutil","tqdm","requests","pytest"],
test_suite="nose.collector",
tests_require=["nose", "pytest","psutil"],
entry_points={
Expand Down
6 changes: 3 additions & 3 deletions tbtamr/Collate.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def __init__(self,args):
self.low_level = self._get_low_level()
self.not_reportable = self._get_not_reportable()
self.exclude_not_reportable = args.exclude_not_reportable
self.prop_mtb = args.prop_mtb
self.min_cov = args.min_cov
self.prop_mtb = float(args.prop_mtb)
self.min_cov = float(args.min_cov)

def _get_db(self,path):

Expand Down Expand Up @@ -274,7 +274,7 @@ def _save_data(self, _data, prefix):

def _check_quality(self, cov, perc):

if cov >= self.min_cov and perc >= self.prop_mtb:
if float(cov) >= self.min_cov and float(perc) >= self.prop_mtb:

return 'Pass QC'
elif perc < self.prop_mtb:
Expand Down
26 changes: 2 additions & 24 deletions tbtamr/TbTamr.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,12 @@ class Tbtamr(object):
A base class for setting up tbtamr return a valid input object for subsequent steps
"""
def __init__(self):




self.one,self.five,self.fifteen = psutil.getloadavg()
self.total_cores = os.cpu_count()
self._cwd = pathlib.Path.cwd()
# self.jobs = args.jobs # number of tbprofilers to run at a time
# self.read1 = args.read1
# self.read2 = args.read2
# self.prefix = args.prefix
# self.datafile = args.data
# self.database = args.database

# def _get_logger(self):
# logger =logging.getLogger(__name__)
# logger.setLevel(logging.DEBUG)
# ch = logging.StreamHandler()
# ch.setLevel(logging.DEBUG)
# ch.setFormatter(CustomFormatter())
# fh = logging.FileHandler('tbtamr.log')
# fh.setLevel(logging.DEBUG)
# formatter = logging.Formatter('[%(levelname)s:%(asctime)s] %(message)s', datefmt='%Y%m-%d %I:%M:%S %p')
# fh.setFormatter(formatter)
# logger.addHandler(ch)
# logger.addHandler(fh)

# return logger


def _run_cmd(self, cmd):

"""
Expand Down
1 change: 0 additions & 1 deletion tests/results/data/2017-18979.results.json

This file was deleted.

25 changes: 25 additions & 0 deletions tests/results/data/iso.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
A
B
C
D
E
F
G
H
I
iso.list
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
53 changes: 0 additions & 53 deletions tests/results/data/isos.txt

This file was deleted.

3 changes: 0 additions & 3 deletions tests/results/data/isos_sub.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/tbtamr.csv

This file was deleted.

54 changes: 0 additions & 54 deletions tests/results/data/tbtamr.final.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/tbtamr.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_1/tb-profiler_report.json

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/test_1/tbtamr.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_1/tbtamr.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_10/tb-profiler_report.json

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/test_10/tbtamr.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_10/tbtamr.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_11/tb-profiler_report.json

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/test_11/tbtamr.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_11/tbtamr.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_12/tb-profiler_report.json

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/test_12/tbtamr.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_12/tbtamr.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_13/tb-profiler_report.json

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/test_13/tbtamr.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_13/tbtamr.json

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_14/tb-profiler_report.json

This file was deleted.

2 changes: 0 additions & 2 deletions tests/results/data/test_14/tbtamr.csv

This file was deleted.

1 change: 0 additions & 1 deletion tests/results/data/test_14/tbtamr.json

This file was deleted.

Loading

0 comments on commit 25850a0

Please sign in to comment.