Skip to content

Commit 616b674

Browse files
committed
Merge branch 'main' into add-scopus-csv
2 parents f3a335f + 21d1b71 commit 616b674

File tree

5 files changed

+0
-279
lines changed

5 files changed

+0
-279
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies = [
1414
"pydantic~=2.10.6",
1515
"requests~=2.32.3",
1616
"typer[all]~=0.9.0",
17-
"xlsxwriter~=3.2.0",
1817
]
1918
requires-python = ">=3.9"
2019
classifiers = [

src/bibx/algorithms/preprocess.py

Lines changed: 0 additions & 233 deletions
This file was deleted.

src/bibx/cli.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import logging
2-
from collections.abc import Callable
32
from enum import Enum
4-
from typing import TextIO
53

64
import networkx as nx
75
import typer
@@ -15,10 +13,8 @@
1513
read_scopus_ris,
1614
read_wos,
1715
)
18-
from bibx.algorithms.preprocess import Preprocess
1916
from bibx.algorithms.sap import Sap
2017
from bibx.builders.openalex import EnrichReferences
21-
from bibx.collection import Collection
2218

2319
app = typer.Typer()
2420

@@ -107,32 +103,5 @@ def openalex(
107103
rprint(graph)
108104

109105

110-
def _read_many(
111-
reader: Callable[[TextIO], Collection],
112-
*filenames: str,
113-
) -> Collection:
114-
first, *rest = filenames
115-
with open(first) as f:
116-
collection = reader(f)
117-
for filename in rest:
118-
with open(filename) as f:
119-
collection = collection.merge(reader(f))
120-
return collection
121-
122-
123-
@app.command()
124-
def preprocess(
125-
output: str,
126-
wos: list[str] = typer.Option(help="WoS files to pre process"),
127-
scopus: list[str] = typer.Option(help="scopus files to preprocess"),
128-
) -> None:
129-
"""Preprocesses a collection."""
130-
wos_collection = _read_many(read_wos, *wos)
131-
scopus_collection = _read_many(read_scopus_ris, *scopus)
132-
p = Preprocess(wos_collection, scopus_collection)
133-
p.create_workbook(output)
134-
rprint(f":boom: workbook created at {output}")
135-
136-
137106
if __name__ == "__main__":
138107
app()

stubs/xlsxwriter/__init__.pyi

Lines changed: 0 additions & 6 deletions
This file was deleted.

stubs/xlsxwriter/worksheet.pyi

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)