Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
removed unused test code
Browse files Browse the repository at this point in the history
  • Loading branch information
apalepu23 committed Mar 29, 2018
1 parent 1b4b5e3 commit 475f9e1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bcolz/tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,6 @@ def test05(self):
def test06(self):
"""Testing `fetchwhere` method off of a timestamp (pd.datetime64)"""
N = self.N
ra = np.fromiter(((i, i * 2., i * 3)
for i in xrange(N)), dtype='i4,f8,i8')
t = bcolz.ctable(ra)
ct = t.fetchwhere('f1 < f2')
l, s = len(ct), ct['f0'].sum()
self.assertEqual(l, N - 1)
self.assertEqual(s, (N - 1) * (N / 2)) # Gauss summation formula

query_idx = np.random.randint(0, self.N)
t = bcolz.fromiter(((i, np.datetime64('2018-03-01') + i) for i in range(N)), dtype="i4,M8[D]", count=N)
threshold = t[query_idx][1]
Expand Down

0 comments on commit 475f9e1

Please sign in to comment.