Skip to content

Commit

Permalink
Add some logging for the querying of input dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhahmann committed Nov 18, 2024
1 parent 4d16d96 commit e0fb205
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
import org.mastodon.mamut.feature.dimensionalityreduction.AbstractOutputFeature;
import org.mastodon.mamut.feature.spot.SpotBranchIDFeature;
import org.mastodon.util.FeatureUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
Expand All @@ -57,6 +60,8 @@
*/
public class InputDimension< V extends Vertex< ? > >
{
private static final Logger logger = LoggerFactory.getLogger( MethodHandles.lookup().lookupClass() );

private final Feature< ? > feature;

private final FeatureProjection< ? > featureProjection;
Expand Down Expand Up @@ -167,6 +172,7 @@ public static < V extends Vertex< E >, E extends Edge< V > > List< InputDimensio
for ( FeatureProjection< V > projection : feature.projections() )
inputDimensions.add( InputDimension.fromVertexFeature( feature, projection ) );
}
logger.debug( "Found {} input dimensions for vertex type '{}'.", inputDimensions.size(), vertexType.getSimpleName() );
return inputDimensions;
}

Expand All @@ -184,6 +190,7 @@ public static < V extends Vertex< E >, E extends Edge< V > > List< InputDimensio
for ( FeatureProjection< E > projection : feature.projections() )
inputDimensions.add( InputDimension.fromEdgeFeature( feature, projection ) );
}
logger.debug( "Found {} input dimensions for edge type '{}'.", inputDimensions.size(), edgeType.getSimpleName() );
return inputDimensions;
}

Expand Down

0 comments on commit e0fb205

Please sign in to comment.