Skip to content

Commit

Permalink
get rid of double import
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Normoyle committed May 27, 2014
1 parent 72b26ae commit 48340e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions py/testdir_release/c2/test_c2_fvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ def sub_c2_fvec_long(self):
for trial, (csvFilepattern, csvFilename, totalBytes, timeoutSecs) in enumerate(csvFilenameList):
csvPathname = importFolderPath + "/" + csvFilepattern

(importResult, importPattern) = h2i.import_only(bucket=bucket, path=csvPathname, schema='local')
importFullList = importResult['files']
importFailList = importResult['fails']
print "\n Problem if this is not empty: importFailList:", h2o.dump_json(importFailList)

# double import still causing problems?
# (importResult, importPattern) = h2i.import_only(bucket=bucket, path=csvPathname, schema='local')
# importFullList = importResult['files']
# importFailList = importResult['fails']
# print "\n Problem if this is not empty: importFailList:", h2o.dump_json(importFailList)

# this accumulates performance stats into a benchmark log over multiple runs
# good for tracking whether we're getting slower or faster
Expand Down
9 changes: 5 additions & 4 deletions py/testdir_release/c2/test_c2_nongz_fvec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ def sub_c2_nongz_fvec_long(self):
for trial, (csvFilepattern, csvFilename, totalBytes, timeoutSecs) in enumerate(csvFilenameList):
csvPathname = importFolderPath + "/" + csvFilepattern

(importResult, importPattern) = h2i.import_only(bucket=bucket, path=csvPathname, schema='local')
importFullList = importResult['files']
importFailList = importResult['fails']
print "\n Problem if this is not empty: importFailList:", h2o.dump_json(importFailList)
# double import still causing problems?
# (importResult, importPattern) = h2i.import_only(bucket=bucket, path=csvPathname, schema='local')
# importFullList = importResult['files']
# importFailList = importResult['fails']
# print "\n Problem if this is not empty: importFailList:", h2o.dump_json(importFailList)

# this accumulates performance stats into a benchmark log over multiple runs
# good for tracking whether we're getting slower or faster
Expand Down

0 comments on commit 48340e6

Please sign in to comment.