Skip to content

Commit

Permalink
change sequence of args in test_shift_redcap_dates.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tashrifbillah committed Jul 11, 2023
1 parent f82bcc8 commit 5f1fd8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_shift_redcap_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
from multiprocessing import Pool
import signal

# Shift REDCap dates by one of [-14,-7,7,14] randomly chosen days
# Test if shifted REDCap dates are one of [-14,-7,7,14] randomly chosen days
# Usage:
# __file__ NDA_ROOT /path/to/redcap_data_dict.csv "Pronet/PHOENIX/PROTECTED/*/raw/*/surveys/*.Pronet.json"
# __file__ NDA_ROOT "Pronet/PHOENIX/PROTECTED/*/raw/*/surveys/*.Pronet.json" /path/to/redcap_data_dict.csv

dir_bak=getcwd()
chdir(sys.argv[1])

df=pd.read_csv(sys.argv[2], encoding='ISO-8859-1')
df=pd.read_csv(sys.argv[3], encoding='ISO-8859-1')

files=glob(sys.argv[3])
files=glob(sys.argv[2])


# when downloaded through GUI
Expand Down

0 comments on commit 5f1fd8b

Please sign in to comment.