-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstatic.py
32 lines (22 loc) · 1.35 KB
/
static.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# static.py
#
# The goal of this static file is to gather all settings such as paths to one central point,
# and to have the test/production-switch right here and nowhere else
# all variables in static.py must be full-uppercase
import pandas as pd
USE_MULTI_THREAD_DEFAULT = True # does nothing for now
PATH_START = 'G:/UBVU/Data_RI/' #'/media/sf_Data_RI/' #
PATH_START_PERSONAL = 'C:/Users/yasin/Desktop/git'
#
PATH_START_SERVER = 'C:/Users/yasing/Desktop/oa oktober/'
PATH_START_PERSONAL_SERVER = 'C:/Users/yasing/Desktop/git'
PRODUCTION_MODE = False # does nothing yet
SCOPUS_KEYS = pd.read_csv(PATH_START_PERSONAL + '/scopuskeys.txt').iloc[:, 0].to_list()
# the email to provide to unpaywall.org, please use your own : )
UNPAYWALL_EMAIL = '[email protected]'
# path to unpaywall invalid-reponse-object cache # this will be made easier to use in an upcoming release
PATH_STATIC_RESPONSES = PATH_START + 'raw data algemeen/api_caches/upw_invalid_request_object.pkl'
PATH_STATIC_RESPONSES_ALTMETRIC = PATH_START + 'raw data algemeen/api_caches/upw_invalid_request_object_alt.pkl'
PATH_STATIC_RESPONSES_SCOPUS_ABS = PATH_START + 'raw data algemeen/api_caches/upw_invalid_request_object_scopus_abs.pkl'
# DEFAULT maximum number of workers for multi-threading
MAX_NUM_WORKERS = 32 # if you experience any issues, please first reduce this to 16 or 8 and retry # esp. for Scopus