Skip to content

Commit 54a3d0b

Browse files
committed
Deleted storage of pdf in hdf5
1 parent bcd72bc commit 54a3d0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyrxiv/cli/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def run_search_and_download(
131131

132132
# Save the paper metadata to an HDF5 file
133133
hdf_path = download_path / f"{paper.id}.hdf5"
134-
save_paper_to_hdf5(paper=paper, pdf_path=pdf_path, hdf_path=hdf_path)
134+
with h5py.File(hdf_path, "a") as h5f:
135+
_ = paper.to_hdf5(hdf_file=h5f)
135136

136137
# Deleting the PDF file after storing it in HDF5
137138
if not download_pdfs:

0 commit comments

Comments
 (0)