Skip to content

Commit 21d1b71

Browse files
authored
remove pre processing (#37)
* Remove pre-processing algorithm * Remove pre-processing dependencies * Remove xlsx writter stubs
1 parent 6d14f8e commit 21d1b71

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
@@ -14,10 +12,8 @@
1412
read_scopus_ris,
1513
read_wos,
1614
)
17-
from bibx.algorithms.preprocess import Preprocess
1815
from bibx.algorithms.sap import Sap
1916
from bibx.builders.openalex import EnrichReferences
20-
from bibx.collection import Collection
2117

2218
app = typer.Typer()
2319

@@ -100,32 +96,5 @@ def openalex(
10096
rprint(graph)
10197

10298

103-
def _read_many(
104-
reader: Callable[[TextIO], Collection],
105-
*filenames: str,
106-
) -> Collection:
107-
first, *rest = filenames
108-
with open(first) as f:
109-
collection = reader(f)
110-
for filename in rest:
111-
with open(filename) as f:
112-
collection = collection.merge(reader(f))
113-
return collection
114-
115-
116-
@app.command()
117-
def preprocess(
118-
output: str,
119-
wos: list[str] = typer.Option(help="WoS files to pre process"),
120-
scopus: list[str] = typer.Option(help="scopus files to preprocess"),
121-
) -> None:
122-
"""Preprocesses a collection."""
123-
wos_collection = _read_many(read_wos, *wos)
124-
scopus_collection = _read_many(read_scopus_ris, *scopus)
125-
p = Preprocess(wos_collection, scopus_collection)
126-
p.create_workbook(output)
127-
rprint(f":boom: workbook created at {output}")
128-
129-
13099
if __name__ == "__main__":
131100
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)