Skip to content

Datalayer copy function  #35

Description

@janash

We have previously added a remove_terms function in the datalayer which allows for terms to removed from the datalayer. The motivation for the addition of this function was to allow terms to be removed and replaced during conversion from one file type to another.

A copy function for the datalayer could be useful so that the original datalayer object remains unchanged and is not overwritten. I believe this can be compared to pandas, where actions are performed on a copy of a datalayer unless inplace=True is set.

Using deepcopy will not work for HDF5 backend (but is fine for memory backend), so copy function should be added to datalayer (information in file layer and datalayer will have to be copied).

Note: Pandas dataframes and hdf5 both have copy functions

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions