Commit 31b72de6 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

Debugging Jobdistributor autofocus jobs

parent f4ec0244
......@@ -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);
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment