From 75717f837cb865a5568fe1bd3bfb7911df1c92bf Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 22 Dec 2023 19:09:35 +0100 Subject: [PATCH] chore(code): By default use all processed data --- scoping_review.qmd | 2 +- src/data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scoping_review.qmd b/scoping_review.qmd index 7e05d1c..988da36 100644 --- a/scoping_review.qmd +++ b/scoping_review.qmd @@ -91,7 +91,7 @@ def countries_to_income_groups(countries:str): return ";".join(res) -bib_df = (data.from_yml(f"{PROCESSED_DATA}/relevant") +bib_df = (data.from_yml(f"{PROCESSED_DATA}") .assign( doi=lambda _df: _df["uri"].str.extract(r"https?://(?:dx\.)?doi\.org/(.*)", expand=False), zot_cited=lambda _df: _df["doi"].map(zot_df["cited"]), diff --git a/src/data.py b/src/data.py index d522ae2..460b96b 100644 --- a/src/data.py +++ b/src/data.py @@ -7,7 +7,7 @@ except ModuleNotFoundError: import load_yaml as yaml # for directly running the package from pandas import DataFrame, read_csv -DEFAULT_YAML_PATH = Path("02-data/processed/relevant") +DEFAULT_YAML_PATH = Path("02-data/processed") def to_tsv(studies: list[dict]) -> str: