Skip to content

Commit f304aaa

Browse files
committed
Move provenance file to quarterly data directory
1 parent 0414859 commit f304aaa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/1-fetch/arxiv_fetch.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
PATHS["data_1-fetch"], "arxiv_4_count_by_author_bucket.csv"
265265
)
266266
# records metadata for each run for audit, reproducibility, and provenance
267-
FILE_PROVENANCE = shared.path_join(PATHS["data"], "arxiv_provenance.yaml")
267+
FILE_PROVENANCE = shared.path_join(PATHS["data_1-fetch"], "arxiv_provenance.yaml")
268268

269269
# Runtime variables
270270
QUARTER = os.path.basename(PATHS["data_quarter"])
@@ -620,7 +620,6 @@ def query_arxiv(args):
620620

621621
# write provenance YAML for auditing
622622
try:
623-
os.makedirs(os.path.dirname(FILE_PROVENANCE), exist_ok=True)
624623
with open(FILE_PROVENANCE, "w", encoding="utf-8") as fh:
625624
yaml.dump(provenance_data, fh, default_flow_style=False, indent=2)
626625
except Exception as e:

0 commit comments

Comments
 (0)