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

Don't override col_cls in DynamicTable.add_column #1091

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft

Conversation

rly
Copy link
Contributor

@rly rly commented Apr 4, 2024

Motivation

Issue: If a user extends DynamicTableRegion or EnumData and tries to create a column with that subclass, using the table or enum keyword args, their subclass argument gets replaced with the base DynamicTableRegion or EnumData classes.
Solution: Use the passed col_cls. If not provided, then use the base DynamicTableRegion or EnumData classes.

TODO: Add a quick test

Checklist

  • Did you update CHANGELOG.md with your changes?
  • Does the PR clearly describe the problem and the solution?
  • Have you reviewed our Contributing Guide?
  • Does the PR use "Fix #XXX" notation to tell GitHub to close the relevant issue numbered XXX when the PR is merged?

@mavaylon1
Copy link
Contributor

Will this be in by next milestone?

@VisLab
Copy link

VisLab commented Apr 26, 2024

Please let us know when it gets in. We are relying on it for implementation of ndx-hed.

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.

3 participants