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

matlab/bfGetPlane.m: avoid use of makeDataArray2D when Octave (ome/bio-formats-octave-docker#29) #4130

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

carandraug
Copy link
Contributor

This fixes ome/bio-formats-octave-docker#29

Octave does not autobox multi-dimensional arrays (Matlab does) so makeDataArray2D can't be used in Octave. this commit makes use of makeDataArray to get a 1D array and then reshapes it. This commit partially reverts 3aa468e (see #3301) for Octave only. the data copy that that commit was meant to prevent is back but is limited to Octave.

For reference, the issue of Octave not autoboxing ND Java arrays is Octave bug #58745 (the issue description references a function java2mat that in theory should make this conversion but that function never worked for me and newer Octave functions have marked it somewhat internal by renaming it __java2mat__).

…o-formats-octave-docker#29)

Octave does not autobox multi-dimensional arrays (Matlab does) so we
can't use makeDataArray2D.  Instead, use makeDataArray to get a 1D
array and reshape it.  This commit partially reverts 3aa468e (see
ome#3301) for Octave only, so the data copy is back but for
Octave only.
@dgault
Copy link
Member

dgault commented Dec 13, 2023

Thank you @carandraug for opening the PR and the continued support for the the project. Since your previous contributions we have introduced a Contributor License Agreement for the project, would you be able to sign and return the form following the instructions on https://ome-contributing.readthedocs.io/en/latest/cla.html

@carandraug
Copy link
Contributor Author

I'm not willing to that CLA at the moment. If you prefer, this patch is too trivial and I do not claim copyright for it.

@joshmoore
Copy link
Member

I've reached out separately to David P. to discuss this and his other contributions.

@sbesson sbesson removed this from the 8.0.0 milestone Sep 2, 2024
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.

test_bfopen fails with
5 participants