Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 4ea2bd0

Browse files
committed
Automated commit -> added proxy and tease settings in env
1 parent 7bb21c2 commit 4ea2bd0

File tree

2 files changed

+37
-10
lines changed

2 files changed

+37
-10
lines changed

jatosAPI.py

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@
1010

1111
# jap_5ThOJ14yf7z1EPEUpAoZYMWoETZcmJk305719
1212

13-
def get_met():
14-
tease = os.getenv['TEASE']
13+
def parse_cmd():
14+
#parse command line for TEASE var
15+
import argparse
16+
parser = argparse.ArgumentParser(description='API File to Pull Subject Data from Jatos')
17+
parser.add_argument('-t', type=str, help='TEASE')
18+
19+
20+
21+
def get_met(tease):
22+
1523

1624
proxies = {
17-
'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888',
18-
'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888',
25+
'http': f'http:zjgilliam:{tease}@proxy.divms.uiowa.edu:8888',
26+
'https': f'https://zjgilliam:{tease}@proxy.divms.uiowa.edu:8888',
1927
}
2028

2129

@@ -62,12 +70,13 @@ def get_met():
6270

6371
return study_result_ids
6472

65-
def get_data(study_result_ids):
66-
tease = os.getenv['TEASE']
73+
def get_data(study_result_ids, tease):
74+
75+
6776

6877
proxies = {
69-
'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888',
70-
'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888',
78+
'http': f'http:zjgilliam:{tease}@proxy.divms.uiowa.edu:8888',
79+
'https': f'https://zjgilliam:{tease}@proxy.divms.uiowa.edu:8888',
7180
}
7281

7382
headers = {
@@ -224,8 +233,10 @@ def push():
224233

225234

226235
def main():
227-
study_result_ids = get_met()
228-
get_data(study_result_ids)
236+
args = parse_cmd()
237+
tease = args.t
238+
study_result_ids = get_met(tease)
239+
get_data(study_result_ids, tease)
229240
convert_beh()
230241
txt_files = []
231242
for root, dirs, files in os.walk('./data/raw'):

requirements.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
contourpy==1.2.1
2+
cycler==0.12.1
3+
fonttools==4.53.1
4+
fuzzywuzzy==0.18.0
5+
kiwisolver==1.4.5
6+
matplotlib==3.9.2
7+
numpy==2.0.1
8+
packaging==24.1
9+
pandas==2.2.2
10+
pillow==10.4.0
11+
pyparsing==3.1.2
12+
python-dateutil==2.9.0.post0
13+
pytz==2024.1
14+
seaborn==0.13.2
15+
six==1.16.0
16+
tzdata==2024.1

0 commit comments

Comments
 (0)