Skip to content

Commit

Permalink
Improve Logger dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed Jul 16, 2020
1 parent e1fd67c commit b030933
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 29 deletions.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,17 @@
<dependency>
<groupId>de.embl.cba</groupId>
<artifactId>imagej-utils</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
</dependency>
<dependency>
<groupId>de.embl.cba</groupId>
<artifactId>fiji-slurm</artifactId>
<version>0.6.2</version>
</dependency>
<dependency>
<groupId>de.embl.cba</groupId>
<artifactId>imaris-writer</artifactId>
<version>0.2.1</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>de.embl.cba</groupId>-->
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/embl/cba/cats/CATS.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
import de.embl.cba.cats.ui.ApplyClassifierOnSlurmCommand;
import de.embl.cba.cats.utils.*;
import de.embl.cba.classifiers.weka.FastRandomForest;
import de.embl.cba.utils.logging.IJLazySwingLogger;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.IJLazySwingLogger;
import de.embl.cba.log.Logger;
import fiji.util.gui.GenericDialogPlus;
import ij.*;
import ij.gui.GenericDialog;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.embl.cba.cats.classification;

import de.embl.cba.classifiers.weka.FastRandomForest;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import weka.core.Instances;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import de.embl.cba.cats.CATS;
import de.embl.cba.cats.utils.IntervalUtils;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import ij.IJ;
import ij.ImagePlus;
import ij.gui.Roi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

import de.embl.cba.cats.features.settings.FeatureSettings;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import de.embl.cba.cats.CATS;
import ij.IJ;
import ij.ImagePlus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import de.embl.cba.cats.labels.Label;
import de.embl.cba.cats.features.settings.FeatureSettings;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import ij.ImagePlus;
import ij.process.ImageProcessor;
import net.imglib2.FinalInterval;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import de.embl.cba.cats.CATS;
import de.embl.cba.cats.results.ResultImage;
import de.embl.cba.cats.utils.ThreadUtils;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import ij.ImagePlus;
import ij.Prefs;
import ij.process.ImageProcessor;
Expand All @@ -15,9 +15,7 @@
import java.util.concurrent.Future;

import static de.embl.cba.cats.CATS.logger;
import static de.embl.cba.cats.utils.IntervalUtils.X;
import static de.embl.cba.cats.utils.IntervalUtils.Y;
import static de.embl.cba.cats.utils.IntervalUtils.Z;
import static de.embl.cba.cats.utils.IntervalUtils.*;

public class AccuracyEvaluation
{
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/de/embl/cba/cats/labels/LabelUtils.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package de.embl.cba.cats.labels;

import de.embl.cba.cats.labels.Label;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.cats.instances.InstancesAndMetadata;
import de.embl.cba.log.Logger;
import weka.core.Instances;

import java.awt.*;
Expand All @@ -11,7 +10,6 @@
import java.util.Set;

import static de.embl.cba.cats.instances.InstancesAndMetadata.Metadata.*;
import static de.embl.cba.cats.instances.InstancesAndMetadata.Metadata.Metadata_Label_Id;

public abstract class LabelUtils
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.embl.cba.cats.results;

import de.embl.cba.bigdataprocessor.utils.Utils;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import ij.ImagePlus;
import ij.ImageStack;
import ij.plugin.Binner;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/de/embl/cba/cats/results/ResultExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import de.embl.cba.imaris.ImarisDataSet;
import de.embl.cba.imaris.ImarisUtils;
import de.embl.cba.imaris.ImarisWriter;
import de.embl.cba.log.Logger;
import ij.IJ;
import ij.ImagePlus;
import ij.ImageStack;
Expand Down Expand Up @@ -144,7 +145,7 @@ public static ImagePlus getBinnedClassImage(

public static ImagePlus getBinnedClassImageMemoryEfficient(
int classId, ResultExportSettings settings, int t,
de.embl.cba.utils.logging.Logger logger, int numThreads )
Logger logger, int numThreads )
{
logger.info( "Computing probability image for " + settings.classNames.get( classId ) + ", using " + numThreads + " threads." );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.embl.cba.cats.results;

import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import ij.ImagePlus;

import java.awt.*;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/de/embl/cba/cats/results/ResultImageDisk.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import de.embl.cba.bigdataprocessor.virtualstack2.VirtualStack2;
import de.embl.cba.cats.CATS;
import de.embl.cba.cats.utils.IntervalUtils;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;
import ij.ImagePlus;
import ij.ImageStack;
import ij.io.FileSaver;
Expand Down Expand Up @@ -48,7 +48,6 @@ public ArrayList< ImagePlus > exportResults( ResultExportSettings resultExportSe
return ResultExport.exportResults( resultExportSettings );
}


@Override
public ImageProcessor getSlice( int slice, int frame )
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/embl/cba/cats/results/ResultImageRAM.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import de.embl.cba.bigdataprocessor.utils.Utils;
import de.embl.cba.cats.CATS;
import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;

import ij.ImagePlus;
import ij.ImageStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import de.embl.cba.cats.CATS;
import de.embl.cba.cats.results.ResultExportSettings;
import de.embl.cba.cats.results.ResultImage;
import de.embl.cba.utils.logging.IJLazySwingLogger;
import de.embl.cba.log.IJLazySwingLogger;
import ij.IJ;
import org.scijava.command.Command;
import org.scijava.log.LogService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import de.embl.cba.cluster.SlurmJobMonitor;
import de.embl.cba.cats.utils.IOUtils;
import de.embl.cba.cats.utils.IntervalUtils;
import de.embl.cba.utils.fileutils.PathMapper;
import de.embl.cba.util.PathMapper;
import net.imagej.ImageJ;
import net.imglib2.FinalInterval;
import org.scijava.command.Command;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import de.embl.cba.cats.results.ResultImage;
import de.embl.cba.cats.utils.IOUtils;
import de.embl.cba.cats.utils.Utils;
import de.embl.cba.utils.logging.IJLazySwingLogger;
import de.embl.cba.log.IJLazySwingLogger;
import ij.IJ;
import net.imagej.ImageJ;
import org.scijava.command.Command;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import de.embl.cba.cluster.JobSettings;
import de.embl.cba.cluster.SlurmJobMonitor;
import de.embl.cba.cats.utils.IOUtils;
import de.embl.cba.utils.fileutils.PathMapper;
import de.embl.cba.utils.logging.IJLazySwingLogger;
import de.embl.cba.util.PathMapper;
import de.embl.cba.log.IJLazySwingLogger;
import org.scijava.command.Command;
import org.scijava.log.LogService;
import org.scijava.plugin.Parameter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import de.embl.cba.cats.CATS;
import de.embl.cba.cats.results.ResultExportSettings;
import de.embl.cba.cats.results.ResultImage;
import de.embl.cba.cats.utils.IOUtils;
import de.embl.cba.utils.logging.IJLazySwingLogger;
import de.embl.cba.log.IJLazySwingLogger;
import ij.IJ;
import org.scijava.command.Command;
import org.scijava.log.LogService;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/embl/cba/cats/utils/CommandUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import de.embl.cba.cluster.ImageJCommandsSubmitter;
import de.embl.cba.cats.ui.ApplyClassifierOnSlurmCommand;
import de.embl.cba.utils.fileutils.PathMapper;
import de.embl.cba.util.PathMapper;
import ij.IJ;
import org.scijava.Context;
import org.scijava.command.CommandService;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/embl/cba/cats/utils/IOUtils.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package de.embl.cba.cats.utils;

import de.embl.cba.bigdataprocessor.BigDataProcessor;
import de.embl.cba.utils.fileutils.FileRegMatcher;
import de.embl.cba.util.FileRegMatcher;
import ij.IJ;
import ij.ImagePlus;
import ij.io.OpenDialog;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/embl/cba/cats/utils/ThreadUtils.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.embl.cba.cats.utils;

import de.embl.cba.utils.logging.Logger;
import de.embl.cba.log.Logger;

import java.util.ArrayList;
import java.util.concurrent.ExecutionException;
Expand Down

0 comments on commit b030933

Please sign in to comment.