Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
graintracking
DCT
Commits
67c0a983
Commit
67c0a983
authored
12 years ago
by
Andrew King
Committed by
Nicola Vigano
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Nicola's modification to GtThreshold to use file locking on sample.mat when using OAR
Signed-off-by:
Andrew King
<
andrew.king@esrf.fr
>
parent
9225cf02
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
4_grains/GtThreshold.m
+11
-6
11 additions, 6 deletions
4_grains/GtThreshold.m
with
11 additions
and
6 deletions
4_grains/GtThreshold.m
+
11
−
6
View file @
67c0a983
...
...
@@ -21,9 +21,13 @@ classdef GtThreshold < handle
obj
.
conf
=
parse_pv_pairs
(
obj
.
conf
,
rej_params
);
end
function
[
defaults
,
sample
]
=
generateDefaults
(
obj
)
function
[
defaults
,
sample
]
=
generateDefaults
(
obj
,
fileTable
)
samplefile
=
fullfile
(
obj
.
param
.
acq
.
dir
,
'4_grains'
,
'sample.mat'
);
sample
=
GtSample
.
loadFromFile
(
samplefile
);
if
(
exist
(
'fileTable'
,
'var'
))
sample
=
GtSample
.
loadFromLockedFile
(
fileTable
,
samplefile
);
else
sample
=
GtSample
.
loadFromFile
(
samplefile
);
end
defaults
=
[];
defaults
.
percentile
=
obj
.
param
.
rec
.
percentile2
;
...
...
@@ -38,7 +42,11 @@ classdef GtThreshold < handle
function
[
varargout
]
=
batchThreshold
(
obj
,
phaseID
,
firstID
,
lastID
,
percentile
)
% GTTHRESHOLD/BATCHTHRESHOLD
[
defaults
,
sample
]
=
obj
.
generateDefaults
();
global
GT_DB
gtDBConnect
(
GT_DB
.
host
,
GT_DB
.
user
,
GT_DB
.
password
,
GT_DB
.
name
);
filetable
=
[
obj
.
param
.
acq
.
name
'_filetable'
];
[
defaults
,
sample
]
=
obj
.
generateDefaults
(
filetable
);
if
(
exist
(
'percentile'
,
'var'
))
obj
.
param
.
rec
.
percentile2
=
percentile
;
...
...
@@ -117,10 +125,7 @@ classdef GtThreshold < handle
end
if
(
~
obj
.
conf
.
verbose
),
fprintf
(
'(%04d..%04d) Done.\n'
,
firstID
,
lastID
);
end
global
GT_DB
disp
(
'Now writing to sample.mat'
)
gtDBConnect
(
GT_DB
.
host
,
GT_DB
.
user
,
GT_DB
.
password
,
GT_DB
.
name
);
filetable
=
[
obj
.
param
.
acq
.
name
'_filetable'
];
samplefile
=
fullfile
(
obj
.
param
.
acq
.
dir
,
'4_grains'
,
'sample.mat'
);
sample
.
mergeToFile
(
filetable
,
samplefile
,
'sample'
);
...
...
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