chore(script): Refactor file top imports
This commit is contained in:
parent
c3b0d8cfd6
commit
708fa90d29
1 changed files with 7 additions and 13 deletions
|
@ -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"):
|
||||||
|
|
Loading…
Reference in a new issue