Skip to content
Snippets Groups Projects
Commit d83d340f authored by Beliy Nikita's avatar Beliy Nikita
Browse files

changed folder from aus to auxiliary

parent 1329ed2f
No related branches found
No related tags found
No related merge requests found
...@@ -39,10 +39,10 @@ def SessionEP(scan): ...@@ -39,10 +39,10 @@ def SessionEP(scan):
sid = -1 sid = -1
checkSeries(path, sub, ses, False) checkSeries(path, sub, ses, False)
# copytng behevioral data # copytng behevioral data
aux_input = os.path.join(rawfolder, sub, ses, "aux") aux_input = os.path.join(rawfolder, sub, ses, "auxiliary")
if ses in ("ses-LCL", "ses-HCL"): if ses in ("ses-LCL", "ses-HCL"):
if not os.path.isdir(aux_input): if not os.path.isdir(aux_input):
logger.error("Session {}/{} do not contain aux folder" logger.error("Session {}/{} do not contain auxiliary folder"
.format(sub, ses)) .format(sub, ses))
raise FileNotFoundError("folder {} not found" raise FileNotFoundError("folder {} not found"
.format(aux_input)) .format(aux_input))
......
...@@ -159,17 +159,16 @@ def SessionEndEP(session: BidsSession): ...@@ -159,17 +159,16 @@ def SessionEndEP(session: BidsSession):
session.getPath(True)) session.getPath(True))
out_path = os.path.join(path, out_path = os.path.join(path,
"MRI") "MRI")
if not checkSeries(out_path, checkSeries(out_path,
session.subject, session.session, session.subject, session.session,
False): False)
return 1
# parcing log files # parcing log files
if session.session == "ses-STROOP": if session.session == "ses-STROOP":
return 0 return 0
logs = os.path.join(session.in_path, "inp") logs = os.path.join(session.in_path, "inp")
aux_d = os.path.join(path, "aux") aux_d = os.path.join(path, "auxiliary")
if not os.path.isdir(logs): if not os.path.isdir(logs):
raise NotADirectoryError(logs) raise NotADirectoryError(logs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment