Skip to content

Commit

Permalink
changing globals to be saved by day in subject folder, removed fparam…
Browse files Browse the repository at this point in the history
… separate saving
  • Loading branch information
Anne Mennen committed Apr 6, 2020
1 parent 000960d commit c25dd11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions webInterface/rtAtten/RtAttenWeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,6 @@ def writeRegConfigFile(regGlobals, scriptPath):
val = os.path.normpath(CommonOutputDir + val)
fp.write(key + '=' + str(val) + '\n')
fp.write('code_path=' + registrationDir)
# Save f param value to a file
fparam = regGlobals.get('fParam', None)
if fparam is not None:
fparamFilename = os.path.join(scriptPath, 'fparam.txt')
with open(fparamFilename, 'w') as fp:
fp.write('fparam: ' + str(fparam))

@staticmethod
def runSession():
Expand Down
2 changes: 1 addition & 1 deletion webInterface/rtAtten/registration/reg_epi_day2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ fi

echo="copying this version for safe keeping!"
cp $code_path/reg_epi_day2.sh $data_path/subject$subjectNum/usedscripts/reg_epi_day2_$dayNum'.'sh

cp $code_path/globals.sh $data_path/subject$subjectNum/usedscripts/globals_day$dayNum.sh

cd $data_path
2 changes: 1 addition & 1 deletion webInterface/rtAtten/registration/skullstrip_t1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ fi
echo "copying this version of file into subject folder for safe keeping!"
mkdir -pv $data_path/subject$subjectNum/usedscripts/
cp $code_path/skullstrip_t1.sh $data_path/subject$subjectNum/usedscripts/skullstrip_T1.sh
cp $code_path/globals.sh $data_path/subject$subjectNum/usedscripts/
cp $code_path/globals.sh $data_path/subject$subjectNum/usedscripts/globals_day$dayNum.sh
echo "done!"

0 comments on commit c25dd11

Please sign in to comment.