chore(script): Rename data paths

This commit is contained in:
Marty Oehme 2023-12-07 11:15:44 +01:00
parent 12704e64f5
commit 1e4817196c
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 9 additions and 4 deletions

View file

@ -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

View file

@ -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)