chore(script): Refactor file top imports

This commit is contained in:
Marty Oehme 2023-12-09 21:54:26 +01:00
parent c3b0d8cfd6
commit 708fa90d29
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -24,14 +24,6 @@ zotero:
```{python} ```{python}
#| echo: false #| echo: false
from pathlib import Path from pathlib import Path
from bibtexparser.model import Field
DATA_DIR=Path("./02-data")
RAW_DATA=DATA_DIR.joinpath("raw")
WORKING_DATA=DATA_DIR.joinpath("intermediate")
PROCESSED_DATA=DATA_DIR.joinpath("processed")
SUPPLEMENTARY_DATA=DATA_DIR.joinpath("supplementary")
## standard imports ## standard imports
from IPython.core.display import Markdown as md from IPython.core.display import Markdown as md
import numpy as np import numpy as np
@ -39,14 +31,16 @@ import pandas as pd
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
import seaborn as sns import seaborn as sns
from tabulate import tabulate from tabulate import tabulate
import bibtexparser
from bibtexparser.model import Field
sns.set_style("whitegrid") sns.set_style("whitegrid")
```
```{python} DATA_DIR=Path("./02-data")
#| echo: false RAW_DATA=DATA_DIR.joinpath("raw")
# load and parse overall bibtex sample WORKING_DATA=DATA_DIR.joinpath("intermediate")
import bibtexparser PROCESSED_DATA=DATA_DIR.joinpath("processed")
SUPPLEMENTARY_DATA=DATA_DIR.joinpath("supplementary")
bib_string="" bib_string=""
for partial_bib in RAW_DATA.glob("**/*.bib"): for partial_bib in RAW_DATA.glob("**/*.bib"):