-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update load_mat_style.m #602
Conversation
Add plot_read_basics to list of tutorials to skip. This tutorial does not produce NWB files that can be read with matnwb.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #602 +/- ##
=======================================
Coverage 90.90% 90.91%
=======================================
Files 107 107
Lines 4751 4753 +2
=======================================
+ Hits 4319 4321 +2
Misses 432 432 ☔ View full report in Codecov by Sentry. |
|
||
if isscalar(dataDimensions) | ||
% Starting in MATLAB R2024b, the input argument for the size | ||
% of an array in ind2sub must be a vector of positive integers | ||
% with two or more elements. This fix replicates the behavior of | ||
% older MATLAB versions, where it was assumed that the a scalar | ||
% size referred to the row dimension. For scalar dimensions | ||
% (i.e., row or column vectors), we can still assume this | ||
% to be true in matnwb. | ||
dataDimensions = [dataDimensions, 1]; | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you are saying, yes this is a simpler solution! Good observation
Fix #601
Motivation
Fix issue which arise when loading 1D vectors in MATLAB R2024b due to changes to the
ind2sub
function as described here:https://se.mathworks.com/help/releases/R2024b/matlab/ref/ind2sub.html?searchPort=49569#mw_463053e0-3bc5-40de-88c3-5887f667b5d3
How to test the behavior?
Checklist
fix #XX
whereXX
is the issue number?