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]: Dynamictable.addRow with logical type #458

Closed
2 tasks done
bendichter opened this issue Aug 15, 2022 · 0 comments · Fixed by #461
Closed
2 tasks done

[Bug]: Dynamictable.addRow with logical type #458

bendichter opened this issue Aug 15, 2022 · 0 comments · Fixed by #461
Assignees

Comments

@bendichter
Copy link
Contributor

What happened?

I am trying to refactor the tutorials to use addRow, but I am getting errors. The works exactly as expected:

trials = types.core.TimeIntervals(...
    'description', 'trials table', ...
    'colnames', {'start_time', 'stop_time', 'is_correct'} ...
);

trials.addRow('start_time', 1., 'stop_time', 2., 'is_correct', true);

but then when I try to add another row:

trials.addRow('start_time', 1.5, 'stop_time', 2., 'is_correct', false);

I get this error

Error using types.util.dynamictable.addVarargRow>validateType
Expected input to be one of these types:

double

Instead its type was logical.

Error in types.util.dynamictable.addVarargRow (line 38)
        validateType(TypeMap(rn), rv);

Error in types.util.dynamictable.addRow (line 45)
    types.util.dynamictable.addVarargRow(DynamicTable, varargin{:});

Error in types.hdmf_common.DynamicTable/addRow (line 111)
        types.util.dynamictable.addRow(obj, varargin{:});

Steps to Reproduce

see above

Error Message

No response

Operating System

macOS

Matlab Version

matlab 2022a

Code of Conduct

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 a pull request may close this issue.

2 participants