Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fdt
Commits
e13f1278
Commit
e13f1278
authored
20 years ago
by
David Flitney
Browse files
Options
Downloads
Patches
Plain Diff
Patches to fsl-3.2patchD
parent
2133fd15
Branches
fsl-3_2
Tags
fsl-3_2_1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
eddy_correct
+1
-1
1 addition, 1 deletion
eddy_correct
fdt.tcl
+25
-15
25 additions, 15 deletions
fdt.tcl
with
26 additions
and
16 deletions
eddy_correct
+
1
−
1
View file @
e13f1278
...
...
@@ -30,7 +30,7 @@ full_list=`${FSLDIR}/bin/imglob -oneperimage vol*`
for
i
in
$full_list
;
do
echo
processing
$i
echo
processing
$i
>>
${
output
}
.ecclog
${
FSLDIR
}
/bin/flirt
-in
$i
-ref
$output
-nosearch
-o
$i
>>
${
output
}
.ecclog
${
FSLDIR
}
/bin/flirt
-in
$i
-ref
$output
-nosearch
-o
$i
-paddingsize
1
>>
${
output
}
.ecclog
done
avwmerge
-t
$output
$full_list
...
...
This diff is collapsed.
Click to expand it.
fdt.tcl
+
25
−
15
View file @
e13f1278
...
...
@@ -979,25 +979,35 @@ proc fdt:select_tool { w tool } {
}
proc fdt_monitor
{
w cmd
}
{
global debugging
global debugging
OSFLAVOUR
puts
"
$cmd
"
set oldcursor
[
$w configure -cursor
{
watch red white
}
]
catch
{
update idletasks
if
{
! $debugging
}
{
set fd
[
open
"|
$cmd
"
r
]
while
{
(
[
gets $fd line
]
>= 0
)
}
{
update idletasks
puts $line
if
{
$OSFLAVOUR !=
"cygwin"
}
{
set oldcursor
[
$w configure -cursor
{
watch red white
}
]
catch
{
update idletasks
if
{
! $debugging
}
{
set fd
[
open
"|
$cmd
"
r
]
while
{
(
[
gets $fd line
]
>= 0
)
}
{
update idletasks
puts $line
}
close $fd
}
close $fd
}
}
junk
$w configure -cursor $oldcursor
}
junk
$w
configure -cursor $oldcursor
}
else
{
catch
{
exec sh -c $cmd
}
junk
}
if
{
$junk !=
""
}
{
MxPause
"Errors:
$junk
"
}
puts
"Done!"
}
...
...
@@ -1073,8 +1083,8 @@ proc fdt:apply { w dialog } {
if
{
[
file exists $
{
bedpost
(
directory
)}
.bedpost
]
}
{
set canwrite
[
YesNoWidget
"Overwrite
${bedpost(directory)}
.bedpost?"
Yes No
]
if
{
$canwrite
}
{
puts
"rm -rf
$bedpost
(directory)"
catch
{
exec rm -rf $bedpost
(
directory
)
}
errmsg
puts
"rm -rf
$
{
bedpost(directory)
}
.bedpost
"
catch
{
exec rm -rf $
{
bedpost
(
directory
)
}
.bedpost
}
errmsg
}
}
if
{
$canwrite
}
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment