From 1e4817196c6f64df61adec1a50333ed05aed33ee Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 7 Dec 2023 11:15:44 +0100 Subject: [PATCH] chore(script): Rename data paths --- notes.qmd | 4 ++++ scoping_review.qmd | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/notes.qmd b/notes.qmd index df9d49d..30af230 100644 --- a/notes.qmd +++ b/notes.qmd @@ -22,6 +22,10 @@ subtitle: Conceptual Definitions and Key Terms ```{python} #| echo: false from pathlib import Path +DATA_DIR=Path("./02-data") +RAW_DATA=DATA_DIR.joinpath("raw") +WORKING_DATA=DATA_DIR.joinpath("intermediate") +SUPPLEMENTARY_DATA=DATA_DIR.joinpath("supplementary") ## standard imports from IPython.core.display import Markdown as md diff --git a/scoping_review.qmd b/scoping_review.qmd index d0f8e51..5993c62 100644 --- a/scoping_review.qmd +++ b/scoping_review.qmd @@ -27,8 +27,9 @@ from pathlib import Path from bibtexparser.model import Field DATA_DIR=Path("./02-data") -RAW_SAMPLE=DATA_DIR.joinpath("raw") -WORKING_SAMPLE=DATA_DIR.joinpath("intermediate") +RAW_DATA=DATA_DIR.joinpath("raw") +WORKING_DATA=DATA_DIR.joinpath("intermediate") +SUPPLEMENTARY_DATA=DATA_DIR.joinpath("supplementary") ## standard imports from IPython.core.display import Markdown as md @@ -47,13 +48,13 @@ sns.set_style("whitegrid") import bibtexparser bib_string="" -for partial_bib in RAW_SAMPLE.glob("**/*.bib"): +for partial_bib in RAW_DATA.glob("**/*.bib"): with open(partial_bib) as f: bib_string+="\n".join(f.readlines()) sample_raw = bibtexparser.parse_string(bib_string) bib_string="" -for partial_bib in WORKING_SAMPLE.glob("**/*.bib"): +for partial_bib in WORKING_DATA.glob("**/*.bib"): with open(partial_bib) as f: bib_string+="\n".join(f.readlines()) sample = bibtexparser.parse_string(bib_string)