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
176cf266
Commit
176cf266
authored
20 years ago
by
David Flitney
Browse files
Options
Downloads
Patches
Plain Diff
Added support for the SGE short queue
parent
833488ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fdt.tcl
+35
-2
35 additions, 2 deletions
fdt.tcl
with
35 additions
and
2 deletions
fdt.tcl
+
35
−
2
View file @
176cf266
...
@@ -977,6 +977,39 @@ proc fdt:select_tool { w tool } {
...
@@ -977,6 +977,39 @@ proc fdt:select_tool { w tool } {
pack $w.registration -in $w.opts -side top -padx 3 -pady 3 -anchor nw
pack $w.registration -in $w.opts -side top -padx 3 -pady 3 -anchor nw
}
}
}
}
proc fdt_monitor_short
{
w cmd
}
{
global debugging OSFLAVOUR
puts
"
$cmd
"
if
{
$OSFLAVOUR !=
"cygwin"
}
{
set oldcursor
[
$w configure -cursor
{
watch red white
}
]
catch
{
update idletasks
if
{
! $debugging
}
{
set fd
[
open
"|
$cmd
"
r
]
# set fd [ open "|qrsh -V -now n -q short.q $cmd" r ]
while
{
(
[
gets $fd line
]
>= 0
)
}
{
update idletasks
puts $line
}
close $fd
}
}
junk
$w
configure -cursor $oldcursor
}
else
{
catch
{
exec sh -c $cmd
}
junk
}
if
{
$junk !=
""
}
{
MxPause
"Errors:
$junk
"
}
puts
"Done!"
}
proc fdt_monitor
{
w cmd
}
{
proc fdt_monitor
{
w cmd
}
{
global debugging OSFLAVOUR
global debugging OSFLAVOUR
...
@@ -1067,7 +1100,7 @@ proc fdt:apply { w dialog } {
...
@@ -1067,7 +1100,7 @@ proc fdt:apply { w dialog } {
set canwrite
[
YesNoWidget
"Overwrite
$dtifit
(output)?"
Yes No
]
set canwrite
[
YesNoWidget
"Overwrite
$dtifit
(output)?"
Yes No
]
}
}
if
{
$canwrite
}
{
if
{
$canwrite
}
{
fdt_monitor $w
"
${FSLDIR}
/bin/dtifit --data=
$dtifit
(input) --out=
$dtifit
(output) --mask=
$dtifit
(mask) --bvecs=
$dtifit
(bvecs) --bvals=
$dtifit
(bvals)"
fdt_monitor
_short
$w
"
${FSLDIR}
/bin/dtifit --data=
$dtifit
(input) --out=
$dtifit
(output) --mask=
$dtifit
(mask) --bvecs=
$dtifit
(bvecs) --bvals=
$dtifit
(bvals)"
}
}
}
}
bedpost
{
bedpost
{
...
@@ -1184,7 +1217,7 @@ proc fdt:apply { w dialog } {
...
@@ -1184,7 +1217,7 @@ proc fdt:apply { w dialog } {
}
}
if
{
$canwrite
}
{
if
{
$canwrite
}
{
set copylog
"fdt.log"
set copylog
"fdt.log"
fdt_monitor $w
"
$
FSLDIR/bin/probtrack --mode=simple -x
${filebase}
_coordinates.txt
$basics
$ssopts
$flags
-o
$probtrack
(output)"
fdt_monitor
_short
$w
"
$
FSLDIR/bin/probtrack --mode=simple -x
${filebase}
_coordinates.txt
$basics
$ssopts
$flags
-o
$probtrack
(output)"
}
}
puts
"rm
${filebase}
_coordinates.txt"
puts
"rm
${filebase}
_coordinates.txt"
exec rm $
{
filebase
}
_coordinates.txt
exec rm $
{
filebase
}
_coordinates.txt
...
...
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