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

[Bug]: dynamic table getRow using 'useId' true fails for index which is not positive ,e.g. index 0 #573

Open
2 tasks done
achilleasNP opened this issue Jun 24, 2024 · 1 comment
Assignees

Comments

@achilleasNP
Copy link

What happened?

When using my_table.getRow(0,'useId', true) (where my_table is a dynamic table with an id 0 row), I was expecting to get the row corresponding to id 0, but instead I get an error message.

Steps to Reproduce

col1 = types.hdmf_common.VectorData( ...
    'description', 'column #1', ...
    'data', [1;2;3] ...
    );

my_table = types.hdmf_common.DynamicTable( ...
    'description', 'an_example table', ...
    'colnames', {'col1'}, ...
    'col1', col1, ...
    'id', types.hdmf_common.ElementIdentifiers('data', [0;1;2]) ...
    );
my_table.getRow(0, 'useId', true);

Error Message

Error using types.util.dynamictable.getRow (line 13)
Expected input to be positive.

Error in types.hdmf_common.DynamicTable/getRow (line 120)
        row = types.util.dynamictable.getRow(obj, id, varargin{:});

Operating System

Windows

Matlab Version

24.1.0.2603908 (R2024a) Update 3

Code of Conduct

@lawrence-mbf
Copy link
Collaborator

Hi @achilleasNP does the merge on the master branch resolve this issue?

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