Skip to content

Commit 1b5634e

Browse files
Merge branch 'main' of github.com:qupath/qupath-extension-djl
2 parents bc3eab8 + 44d1674 commit 1b5634e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/qupath/ext/djl/DjlExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public class DjlExtension implements QuPathExtension, GitHubProject {
5050

5151
@Override
5252
public void installExtension(QuPathGUI qupath) {
53-
if (QuPathGUI.getVersion().compareTo(Version.parse("v0.6.0")) < 0) {
54-
throw new UnsupportedOperationException("This extension version is incompatible with QuPath < v0.6.0");
53+
if (Version.COMPARATOR_MAJOR_MINOR_PATCH.compare(QuPathGUI.getVersion(), getQuPathVersion()) < 0) {
54+
throw new UnsupportedOperationException("This extension version is incompatible with QuPath < v" + getQuPathVersion());
5555
}
5656
logger.debug("Installing Deep Java Library extension");
5757
logger.info("Registering DjlDnnModel");

0 commit comments

Comments
 (0)