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

Adaptations to bdv-10.4.1 #4

Closed
NicoKiaru opened this issue Jun 28, 2022 · 5 comments
Closed

Adaptations to bdv-10.4.1 #4

NicoKiaru opened this issue Jun 28, 2022 · 5 comments

Comments

@NicoKiaru
Copy link
Member

Branch:
https://github.com/BIOP/bigdataviewer-playground-display/tree/bdv-10.4.1

Essentially ( in a test ):

\src\test\java\sc\fiji\bdvpg\projectors\test\DefaultProjectorFactory.java:34:18
java: constructor AccumulateProjectorARGB in class bdv.viewer.render.AccumulateProjectorARGB cannot be applied to given types;
  required: no arguments
  found: java.util.List<bdv.viewer.render.VolatileProjector>,java.util.List<capture#1 of ? extends net.imglib2.RandomAccessible<? extends net.imglib2.type.numeric.ARGBType>>,net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.ARGBType>,int,java.util.concurrent.ExecutorService
  reason: actual and formal argument lists differ in length

and deprecated super calls, for instance:

image

@tpietzsch
Copy link

Essentially ( in a test ):

\src\test\java\sc\fiji\bdvpg\projectors\test\DefaultProjectorFactory.java:34:18
java: constructor AccumulateProjectorARGB in class bdv.viewer.render.AccumulateProjectorARGB cannot be applied to given types;
  required: no arguments
  found: java.util.List<bdv.viewer.render.VolatileProjector>,java.util.List<capture#1 of ? extends net.imglib2.RandomAccessible<? extends net.imglib2.type.numeric.ARGBType>>,net.imglib2.RandomAccessibleInterval<net.imglib2.type.numeric.ARGBType>,int,java.util.concurrent.ExecutorService
  reason: actual and formal argument lists differ in length

That should be resolved by bigdataviewer/bigdataviewer-playground#257 (comment)

@tpietzsch
Copy link

and deprecated super calls, for instance:

image

The numThreads and executorService arguments are not required anymore, because parallelization is handled differently now. The deprecated super constructor just swallos those arguments and calls the non-deprecated constructor which doesn't have these arguments anymore.

@NicoKiaru
Copy link
Member Author

Do you know what's the best way to fix the deprecation in https://github.com/BIOP/bigdataviewer-biop-tools/blob/6b93b23b2cbd01232ba17b6562b3c64bf4b9b483/src/main/java/bdv/util/projector/alpha/LayerAlphaProjectorFactory.java ?

I'm a bit confused, because I can get rid of the executor and of the numthreads in the super call, but then what's the point of having them in the AccumulateProjectorFactory interface ?

@tpietzsch
Copy link

I'm a bit confused, because I can get rid of the executor and of the numthreads in the super call, but then what's the point of having them in the AccumulateProjectorFactory interface ?

Good point :-)
The numThreads, executorService should be removed from the AccumulateProjectorFactory interface as well

@NicoKiaru
Copy link
Member Author

Closing - no issue left here. It works well with bdv10.4.1

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

No branches or pull requests

2 participants