Skip to content

Commit

Permalink
Fix some more instances of stmt->rslt.
Browse files Browse the repository at this point in the history
  • Loading branch information
pagreene committed Jul 17, 2020
1 parent e5df4b1 commit c3a15af
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions indra_db/reading/read_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def make_parser():
'-b', '--inner_batch',
dest='b_in',
help=('Choose the size of the inner batches, which is the number of '
'text content entires loaded at a given time, and the number of '
'text content entries loaded at a given time, and the number of '
'entries that are read at a time by a reader. The default is '
'1,000.'),
default=1000,
Expand All @@ -716,8 +716,9 @@ def make_parser():
action='store_true'
)
parser.add_argument(
'--no_statement_upload',
help='Choose not to upload the statements to the database.',
'--no_result_upload',
help=('Choose not to upload the resutls extracted from teh readings '
'to the database.'),
action='store_true'
)
parser.add_argument(
Expand Down Expand Up @@ -789,19 +790,19 @@ def main():
# Get the pickle file names.
if args.name is not None:
reading_pickle = args.name + '_readings_%d.pkl' % n
stmts_pickle = args.name + '_stmts_%d.pkl' % n
rslts_pickle = args.name + '_results_%d.pkl' % n
else:
reading_pickle = None
stmts_pickle = None
rslts_pickle = None

# Get the dict of ids.
tcids = [int(tcid_str.strip())
for tcid_str in input_lines[B*n:B*(n+1)]]

# Read everything ====================================================
run_reading(readers, tcids, verbose, args.reading_mode, args.rslt_mode,
args.b_in, reading_pickle, stmts_pickle,
not args.no_reading_upload, not args.no_statement_upload)
args.b_in, reading_pickle, rslts_pickle,
not args.no_reading_upload, not args.no_result_upload)


if __name__ == "__main__":
Expand Down

0 comments on commit c3a15af

Please sign in to comment.