-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
34 lines (21 loc) · 697 Bytes
/
main.py
File metadata and controls
34 lines (21 loc) · 697 Bytes
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
32
33
34
from SWITCHFileDownloader import SWITCHFileDownloader
from dependencies import os, pd
def main():
MAIL = 'your_email'
PW = 'your_password'
SRC_COL_NAME = 'SWITCH url'
DST_COL_NAME = 'abs dst path'
SWITCHFileDownloader.set_login(
SWITCHemail=MAIL,
SWITCHpw=PW
)
SWITCHFileDownloader.set_src_dst_column_names(
src_col=SRC_COL_NAME,
dst_col=DST_COL_NAME
)
downloader = SWITCHFileDownloader()
for source_file in ['HDR.csv', 'TEM.csv', 'IRR.csv']:
SRC_DST_DF = pd.read_csv(os.path.join('example_data', source_file))
downloader.set_SRC_DST_df(SRC_DST_DF)
downloader.go()
main()