Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aliaksandr Halavatyi
AutoMicTools
Commits
31b72de6
Commit
31b72de6
authored
May 26, 2021
by
Aliaksandr Halavatyi
Browse files
Debugging Jobdistributor autofocus jobs
parent
f4ec0244
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/automic/online/jobs/common/Job_AutofocusInit_Commander.java
View file @
31b72de6
...
...
@@ -32,13 +32,15 @@ public class Job_AutofocusInit_Commander extends Job_Default{
protected
void
preProcessOnline
()
throws
Exception
{
super
.
clearSharedData
();
currentTable
.
cleanRecord
(
curDInd
);
//change the root path of the table to experiment folder
currentTable
.
setRootPath
(
newImgFile
.
getParentFile
().
getParent
());
//
currentTable
.
setFileAbsolutePath
(
newImgFile
,
curDInd
,
imgColumnNm
,
"IMG"
);
String
Exper_nm
=
newImgFile
.
getName
();
Exper_nm
=
Exper_nm
.
substring
(
0
,
Exper_nm
.
indexOf
(
fileTag
));
//TODO: deal with identifying experiment name in different cases
String
Exper_nm
=
"AutoMicTools"
;
//String Exper_nm=newImgFile.getName();
//Exper_nm=Exper_nm.substring(0, Exper_nm.indexOf(fileTag));
this
.
setSharedValue
(
"Experiment Name"
,
Exper_nm
);
TimeUnit
.
MILLISECONDS
.
sleep
(
1000
);
ImageOpenerWithBioformats
.
turnLineScans
=
true
;
...
...
@@ -135,7 +137,7 @@ public class Job_AutofocusInit_Commander extends Job_Default{
@Override
public
void
postProcessSuccess
()
throws
Exception
{
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
"
spindle-LZ
"
,
new
Point3D
(
null
,
null
,(
double
)
zSubmit
));
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
""
,
new
Point3D
(
null
,
null
,(
double
)
zSubmit
));
Roi
[]
rs
=
getOverlay
().
toArray
();
if
(!
ROIManipulator2D
.
isEmptyRoiArr
(
rs
))
saveRoisForImage
(
newImgFile
,
rs
);
...
...
@@ -143,7 +145,7 @@ public class Job_AutofocusInit_Commander extends Job_Default{
@Override
public
void
postProcessOffline
()
throws
Exception
{
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
"
spindle-LZ
"
,
new
Point3D
(
null
,
null
,(
double
)
zSubmit
));
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
""
,
new
Point3D
(
null
,
null
,(
double
)
zSubmit
));
Roi
[]
rs
=
getOverlay
().
toArray
();
if
(!
ROIManipulator2D
.
isEmptyRoiArr
(
rs
))
saveRoisForImage
(
newImgFile
,
rs
);
...
...
src/main/java/automic/online/jobs/common/Job_Autofocus_Commander.java
View file @
31b72de6
...
...
@@ -91,7 +91,7 @@ public class Job_Autofocus_Commander extends Job_Default{
@Override
public
void
postProcessSuccess
()
throws
Exception
{
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
"
spindle-LZ
"
,
new
Point3D
(
null
,
null
,(
double
)
maxind
));
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
""
,
new
Point3D
(
null
,
null
,(
double
)
maxind
));
Roi
[]
rs
=
getOverlay
().
toArray
();
if
(!
ROIManipulator2D
.
isEmptyRoiArr
(
rs
))
saveRoisForImage
(
newImgFile
,
rs
);
...
...
@@ -99,7 +99,7 @@ public class Job_Autofocus_Commander extends Job_Default{
@Override
public
void
postProcessOffline
()
throws
Exception
{
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
"
spindle-LZ
"
,
new
Point3D
(
null
,
null
,(
double
)
maxind
));
this
.
microscopeCommander
.
submitJobPixels
(
newImgFile
,
""
,
new
Point3D
(
null
,
null
,(
double
)
maxind
));
Roi
[]
rs
=
getOverlay
().
toArray
();
if
(!
ROIManipulator2D
.
isEmptyRoiArr
(
rs
))
saveRoisForImage
(
newImgFile
,
rs
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment