chore(script): Rename data paths
This commit is contained in:
parent
12704e64f5
commit
1e4817196c
2 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue