Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjohnchase committed Apr 1, 2015
1 parent 5ef96b7 commit ca2a9d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bcgenerator/tests/test_IDgenerator.py
Expand Up @@ -27,7 +27,7 @@ def test_base36_to_base10(self):

def test_encode(self):
obs = encode(999999)
exp = (51253930955819896761L, 'ATEIQ6KK5O0XL')
exp = (26589444225832484022L, '5M0IBBZ17246U')
self.assertEqual(obs, exp)

def test_decode(self):
Expand Down
15 changes: 6 additions & 9 deletions bcgenerator/util.py
Expand Up @@ -11,15 +11,12 @@

def get_ids(input_fh):

if type(input_fh) == file:
id_df = pd.read_csv(input_fh)
id_list = list(id_df.ix[:, 0])

elif type(input_fh) == str:
id_list = input_fh.split('\n')[1:]

else:
print type(input_fh)
# if type(input_fh) == file:
id_df = pd.read_csv(input_fh)
id_list = list(id_df.ix[:, 0])
#
# elif type(input_fh) == str:
# id_list = input_fh.split('\n')[1:]
return id_list


Expand Down

0 comments on commit ca2a9d0

Please sign in to comment.