Skip to content

Provide read/write access to table contents #53

Closed as not planned
Closed as not planned

Description

@jeromekelleher

Currently we provide a read-only interface to the contents of tables by passing back copies of the data in numpy arrays. This is quite tedious when trying to make changes to tables, and is also a major gotcha for users.

We can facilitate this by keeping a flag internally in the table struct. This will keep track of whether anyone external has a reference to internal memory. If so, then any attempts to grow the table (and therefore realloc memory, making external pointers invalid) will fail. This should be safe I think.

Update the tests in test_tables.py:TestSimplifyTables to use this interface.

Activity

  1. added
    Python API
    on Sep 29, 2020
  2. added
    future
    on Jun 12, 2025
  3. benjeffery commented on Jun 12, 2025

    @benjeffery
    Member

    Closing for inactivity and labelling "future", please re-open if you plan to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Python APIfuture

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions