Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of getType() API #115

Merged
merged 6 commits into from
Aug 29, 2024
Merged

Addition of getType() API #115

merged 6 commits into from
Aug 29, 2024

Conversation

tpietzsch
Copy link
Collaborator

Changes that will be required after imglib/imglib2#312 is merged and released

@tpietzsch
Copy link
Collaborator Author

Bumping parent to pom-scijava-37.0.0 causes the following test failures with
IllegalArgument Invalid service: net.imagej.legacy.LegacyService

@ctrueden any idea what could be going on there and how to fix it?

[ERROR] Errors:
[ERROR]   GarbageCollectionTest.<init>:53 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   GarbageCollectionTest.<init>:53 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   InitialLabelingTest.testDoNotCrashWhenLabelingFileIsEmpty:62 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   InitialLabelingTest.testEnumeratedAxis:78 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentationUseCaseTest.test:78 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentationUseCaseTest.testMultiChannel:111 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabelingSerializationTest.<init>:69 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabelingSerializationTest.<init>:69 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabelingSerializationTest.<init>:69 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabelingSerializationTest.<init>:69 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   DefaultSegmentationModelTest.testListener:58 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   DefaultSegmentationModelTest.testLoadClassifierWithDifferentLabels:81 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   CalculateProbabilityMapWithLabkitIJ1PluginTest.test:21 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   CalculateProbabilityMapWithLabkitPluginTest.test:44 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabkitProbabilityMapForImagesInDirectoryPluginTest.<init>:71 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabkitSegmentImagesInDirectoryPluginTest.<init>:73 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentImageWithLabkitIJ1PluginTest.test:21 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentImageWithLabkitPluginTest.test:44 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentRGBImageTest.testSegmentation:61 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentRGBImageTest.testTraining:79 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabkitProjectFileSerializerTest.testOpen:59 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   LabkitProjectFileSerializerTest.testSave:47->exampleProject:84 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentationToolTest.<init>:51->openImage:81 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   SegmentationToolTest.<init>:51->openImage:81 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService
[ERROR]   TrainableSegmentationSegmenterTest.testClassify3DStackInSlices:59 » IllegalArgument Invalid service: net.imagej.legacy.LegacyService

	imglib2 -> 7.1.0
	imglib2-realtransform -> 4.0.3
	imglib2-roi -> 0.15.0
	imglib2-cache -> 1.0.0-beta-18
	imglib2-algorithm -> 0.15.3
	bigdataviewer-core -> 10.6.0
@tpietzsch tpietzsch force-pushed the feature-rai-getType branch from c9a8eaa to 2fc86c5 Compare August 19, 2024 10:24
@tpietzsch tpietzsch marked this pull request as ready for review August 19, 2024 10:24
@maarzt
Copy link
Collaborator

maarzt commented Aug 27, 2024

@tpietzsch Thank you for the PR !!

What are the steps and timing required to get this released & deployed together with imglib2-7.1 ?

@tpietzsch
Copy link
Collaborator Author

It would be cool if you could make a release now. I'll ping you when the imglib2-7.1 is on the Fiji update site

maarzt added 2 commits August 29, 2024 11:57
In imglib2-7.1 the way Utils.getTypeFromInterval(...) works was changed.
Currently it triggers a NullPointerException for an ImgLabeling. This
workaround fixes the problem.
@maarzt maarzt merged commit 43eebfe into master Aug 29, 2024
1 check passed
@maarzt
Copy link
Collaborator

maarzt commented Aug 29, 2024

A made the releases:

  • labkit-pixel-classification 0.1.18
  • labkit-ui 0.4.0

@tpietzsch Could you please upload the labkit jars together with imglib2, I don't yet have the privileges to upload to Fiji's core update sites.

I also found a bug in imglib2-roi - imgLabeling.getType(). Even after fixing the bug Utils.getType(imgLabeling).createVariable() creates a LabelingType that behaves differently than with imglib2-6.1. Don't know why exactly. Here is the PR that hopefully fixes the bug imglib/imglib2-roi#73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants