You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that prints all of this text to a log file called ivp_errors.txt.
We should add this option to the print statements of nacc/run_filters.py and nacc/uds3/filters.py so that the filters run faster.
It would probably look similar to how it works in redcap2nacc, which is, every print statement has a second argument called "file=sys.stderr", and then stderr is specified as a file with that "2>(filename)" argument when running the program. nacc/uds3/filters.py specifically needs this capability rather than nacc/run_filters.py, but run_filters.py is the base program that calls each function in filters.py.
The text was updated successfully, but these errors were encountered:
Currently, by default, NACCulator prints all progress and errors to stderr (the terminal). This makes the code take a long time to run.
In redcap2nacc, we add an argument to the command after the output file is specified. For example:
redcap2nacc -ivp <run_06-07-2022/final_Update.csv >run_06-07-2022/iv_nacc_complete.txt 2>run_06-07-2022/ivp_errors.txt
that prints all of this text to a log file called ivp_errors.txt.
We should add this option to the print statements of nacc/run_filters.py and nacc/uds3/filters.py so that the filters run faster.
It would probably look similar to how it works in redcap2nacc, which is, every print statement has a second argument called "file=sys.stderr", and then stderr is specified as a file with that "2>(filename)" argument when running the program. nacc/uds3/filters.py specifically needs this capability rather than nacc/run_filters.py, but run_filters.py is the base program that calls each function in filters.py.
The text was updated successfully, but these errors were encountered: