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

Add insert1_skip_full_duplicates and remove recursive_search #43

Closed
wants to merge 7 commits into from
Closed

Conversation

CBroz1
Copy link
Contributor

@CBroz1 CBroz1 commented Aug 10, 2022

As discussed in #42. Stopgap pending feature to datajoint-python (feature request).

@CBroz1 CBroz1 added the enhancement New feature or request label Aug 10, 2022
Co-authored-by: Dimitri Yatsenko <[email protected]>
@CBroz1 CBroz1 changed the title insert1_skip_full_duplicates and recursive_search deprecation warning Add insert1_skip_full_duplicates and remove recursive_search Dec 1, 2022
@CBroz1 CBroz1 marked this pull request as ready for review December 1, 2022 17:40
Args:
key (str): Key used to search through a nested dictionary
dictionary (dict): Nested dictionary
def insert1_skip_full_duplicates(table, entry):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. This will be integrated into DataJoint shortly. datajoint/datajoint-python#1049

@CBroz1
Copy link
Contributor Author

CBroz1 commented Dec 7, 2022

Hi @dimitri-yatsenko - Is this ready to merge?

@CBroz1 CBroz1 linked an issue Dec 20, 2022 that may be closed by this pull request
@kabilar kabilar self-assigned this Dec 22, 2022
@CBroz1
Copy link
Contributor Author

CBroz1 commented Dec 22, 2022

We tried this out in practice and ran into issues when the secondary attributes were duplicated with a novel primary key.
The desired functionality would skip entry if the secondary attributes already existed. Tabling this for now.

@CBroz1 CBroz1 closed this Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generalized paramset insert?
3 participants