File tree Expand file tree Collapse file tree 5 files changed +0
-279
lines changed Expand file tree Collapse file tree 5 files changed +0
-279
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ dependencies = [
14
14
" pydantic~=2.10.6" ,
15
15
" requests~=2.32.3" ,
16
16
" typer[all]~=0.9.0" ,
17
- " xlsxwriter~=3.2.0" ,
18
17
]
19
18
requires-python = " >=3.9"
20
19
classifiers = [
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import logging
2
- from collections .abc import Callable
3
2
from enum import Enum
4
- from typing import TextIO
5
3
6
4
import networkx as nx
7
5
import typer
14
12
read_scopus_ris ,
15
13
read_wos ,
16
14
)
17
- from bibx .algorithms .preprocess import Preprocess
18
15
from bibx .algorithms .sap import Sap
19
16
from bibx .builders .openalex import EnrichReferences
20
- from bibx .collection import Collection
21
17
22
18
app = typer .Typer ()
23
19
@@ -100,32 +96,5 @@ def openalex(
100
96
rprint (graph )
101
97
102
98
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
-
130
99
if __name__ == "__main__" :
131
100
app ()
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments