Skip to content

Commit

Permalink
Changed names
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSNelson committed Jan 19, 2024
1 parent 694caa3 commit 2a74012
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import javafx.stage.DirectoryChooser
import javafx.stage.Modality
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import qupath.ext.basicstitching.stitching.stitchingImplementations
import qupath.ext.basicstitching.stitching.StitchingImplementations
import qupath.lib.gui.scripting.QPEx

import java.awt.*
Expand Down Expand Up @@ -71,7 +71,7 @@ class StitchingGUI {
String matchingString = matchStringField.getText() // Assuming matchStringField is accessible
String stitchingType = stitchingGridBox.getValue()
// Call the function with collected data
String finalImageName = stitchingImplementations.stitchCore(stitchingType, folderPath, folderPath, compressionType, pixelSize, downsample, matchingString)
String finalImageName = StitchingImplementations.stitchCore(stitchingType, folderPath, folderPath, compressionType, pixelSize, downsample, matchingString)
//stitchByFileName(folderPath, compressionType, pixelSize, downsample, matchingString)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ class VectraMetadataStrategy implements StitchingStrategy {
* Class responsible for managing stitching strategies and executing the stitching process.
* This class sets the appropriate stitching strategy based on the given type and coordinates the stitching process.
*/
class stitchingImplementations {
class StitchingImplementations {
private static StitchingStrategy strategy

/**
Expand All @@ -539,7 +539,7 @@ class stitchingImplementations {
* @param strategy The stitching strategy to be set.
*/
static void setStitchingStrategy(StitchingStrategy strategy) {
stitchingImplementations.strategy = strategy
StitchingImplementations.strategy = strategy
}

/**
Expand All @@ -553,10 +553,12 @@ class stitchingImplementations {
* @param baseDownsample The base downsample value for the stitching process.
* @param matchingString A string to match for selecting relevant subdirectories or files.
*/
static String stitchCore(String stitchingType, String folderPath, String outputPath, String compressionType, double pixelSizeInMicrons, double baseDownsample, String matchingString) {
static String stitchCore(String stitchingType, String folderPath, String outputPath,
String compressionType, double pixelSizeInMicrons,
double baseDownsample, String matchingString) {
def logger = LoggerFactory.getLogger(QuPathGUI.class)
// Determine the stitching strategy based on the provided type
logger.info("Stitching typoe is: $stitchingType")
logger.info("Stitching type is: $stitchingType")
switch (stitchingType) {

case "Filename[x,y] with coordinates in microns":
Expand All @@ -569,7 +571,7 @@ class stitchingImplementations {
setStitchingStrategy(new TileConfigurationTxtStrategy())
break
default:
Dialogs.showWarningNotification("Warning", "Error with choosing a stitching method, code here should not be reached in stitchingImplementations.groovy")
Dialogs.showWarningNotification("Warning", "Error with choosing a stitching method, code here should not be reached in StitchingImplementations.groovy")
return // Safely exit the method if the stitching type is not recognized
}

Expand Down

0 comments on commit 2a74012

Please sign in to comment.