Skip to content

Commit 3a43286

Browse files
committed
fix AOP metadata access
1 parent 3ada4f9 commit 3a43286

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
-152 Bytes
Binary file not shown.

dist/neonutilities-0.0.13.tar.gz

-400 Bytes
Binary file not shown.

src/neonutilities/aop_download.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,13 @@ def by_file_aop(dpid,
475475
chunk_size=chunk_size, token=token)
476476

477477
# download issue log table
478-
ilog = get_issue_log(dpID=dpid, token=None)
478+
ilog = get_issue_log(dpid=dpid, token=None)
479479
ilog.to_csv(f"{download_path}/issueLog_{dpid}.csv", index=False)
480480

481481
# download citations
482482
if "PROVISIONAL" in releases:
483483
try:
484-
cit = get_citation(dpID=dpid, release="PROVISIONAL")
484+
cit = get_citation(dpid=dpid, release="PROVISIONAL")
485485
with open(f"{download_path}/citation_{dpid}_PROVISIONAL.txt",
486486
mode="w+", encoding="utf-8") as f:
487487
f.write(cit)
@@ -494,7 +494,7 @@ def by_file_aop(dpid,
494494
releases = releases
495495
if len(rel) == 1:
496496
try:
497-
cit = get_citation(dpID=dpid, release=rel[0])
497+
cit = get_citation(dpid=dpid, release=rel[0])
498498
with open(f"{download_path}/citation_{dpid}_{rel[0]}.txt",
499499
mode="w+", encoding="utf-8") as f:
500500
f.write(cit)
@@ -852,13 +852,13 @@ def get_buffer_coords(easting, northing, buffer):
852852
chunk_size=chunk_size, token=token)
853853

854854
# download issue log table
855-
ilog = get_issue_log(dpID=dpid, token=None)
855+
ilog = get_issue_log(dpid=dpid, token=None)
856856
ilog.to_csv(f"{download_path}/issueLog_{dpid}.csv", index=False)
857857

858858
# download citations
859859
if "PROVISIONAL" in releases:
860860
try:
861-
cit = get_citation(dpID=dpid, release="PROVISIONAL")
861+
cit = get_citation(dpid=dpid, release="PROVISIONAL")
862862
with open(f"{download_path}/citation_{dpid}_PROVISIONAL.txt",
863863
mode="w+", encoding="utf-8") as f:
864864
f.write(cit)
@@ -871,7 +871,7 @@ def get_buffer_coords(easting, northing, buffer):
871871
releases = releases
872872
if len(rel) == 1:
873873
try:
874-
cit = get_citation(dpID=dpid, release=rel[0])
874+
cit = get_citation(dpid=dpid, release=rel[0])
875875
with open(f"{download_path}/citation_{dpid}_{rel[0]}.txt",
876876
mode="w+", encoding="utf-8") as f:
877877
f.write(cit)

0 commit comments

Comments
 (0)