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
15
13
read_scopus_ris ,
16
14
read_wos ,
17
15
)
18
- from bibx .algorithms .preprocess import Preprocess
19
16
from bibx .algorithms .sap import Sap
20
17
from bibx .builders .openalex import EnrichReferences
21
- from bibx .collection import Collection
22
18
23
19
app = typer .Typer ()
24
20
@@ -107,32 +103,5 @@ def openalex(
107
103
rprint (graph )
108
104
109
105
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
-
137
106
if __name__ == "__main__" :
138
107
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