Skip to content

Commit

Permalink
fix AOP metadata access
Browse files Browse the repository at this point in the history
  • Loading branch information
cklunch committed Sep 22, 2024
1 parent 3ada4f9 commit 3a43286
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified dist/neonutilities-0.0.13-py3-none-any.whl
Binary file not shown.
Binary file modified dist/neonutilities-0.0.13.tar.gz
Binary file not shown.
12 changes: 6 additions & 6 deletions src/neonutilities/aop_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ def by_file_aop(dpid,
chunk_size=chunk_size, token=token)

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

# download citations
if "PROVISIONAL" in releases:
try:
cit = get_citation(dpID=dpid, release="PROVISIONAL")
cit = get_citation(dpid=dpid, release="PROVISIONAL")
with open(f"{download_path}/citation_{dpid}_PROVISIONAL.txt",
mode="w+", encoding="utf-8") as f:
f.write(cit)
Expand All @@ -494,7 +494,7 @@ def by_file_aop(dpid,
releases = releases
if len(rel) == 1:
try:
cit = get_citation(dpID=dpid, release=rel[0])
cit = get_citation(dpid=dpid, release=rel[0])
with open(f"{download_path}/citation_{dpid}_{rel[0]}.txt",
mode="w+", encoding="utf-8") as f:
f.write(cit)
Expand Down Expand Up @@ -852,13 +852,13 @@ def get_buffer_coords(easting, northing, buffer):
chunk_size=chunk_size, token=token)

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

# download citations
if "PROVISIONAL" in releases:
try:
cit = get_citation(dpID=dpid, release="PROVISIONAL")
cit = get_citation(dpid=dpid, release="PROVISIONAL")
with open(f"{download_path}/citation_{dpid}_PROVISIONAL.txt",
mode="w+", encoding="utf-8") as f:
f.write(cit)
Expand All @@ -871,7 +871,7 @@ def get_buffer_coords(easting, northing, buffer):
releases = releases
if len(rel) == 1:
try:
cit = get_citation(dpID=dpid, release=rel[0])
cit = get_citation(dpid=dpid, release=rel[0])
with open(f"{download_path}/citation_{dpid}_{rel[0]}.txt",
mode="w+", encoding="utf-8") as f:
f.write(cit)
Expand Down

0 comments on commit 3a43286

Please sign in to comment.