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}
#| echo: false
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
from IPython.core.display import Markdown as md
import numpy as np
@ -39,14 +31,16 @@ import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns
from tabulate import tabulate
import bibtexparser
from bibtexparser.model import Field
sns.set_style("whitegrid")
```
```{python}
#| echo: false
# load and parse overall bibtex sample
import bibtexparser
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")
bib_string=""
for partial_bib in RAW_DATA.glob("**/*.bib"):