Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def download_xml_gz_files():
print(len(file_collection))

for i in range(1, num_xml_files+1, batch_size):
file_collection = ['medline17n%04d.xml.gz' % j
file_collection = ['medline18n%04d.xml.gz' % j
for j in range(i, min([i + batch_size, num_xml_files +1]) )
if not os.path.exists(os.path.join(xml_local_dir,'medline17n%04d.xml.gz' % j))]

Expand Down Expand Up @@ -119,7 +119,7 @@ def process_files():
print('The directory {} does not exist'.format(xml_local_dir))

for i in range(1, num_xml_files+1, batch_size):
file_collection = [os.path.join(xml_local_dir,'medline17n%04d.xml.gz' % j)
file_collection = [os.path.join(xml_local_dir,'medline18n%04d.xml.gz' % j)
for j in range(i, i + batch_size)
if os.path.exists(os.path.join(xml_local_dir,'medline17n%04d.xml.gz' % j))]

Expand Down