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

Move filter_out_duplicates function #103

Merged
merged 3 commits into from
Nov 17, 2022

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Oct 28, 2022

This PR moves the filter_out_duplicates() frunction from the gilda.generate_terms module to gilda.term module.

This makes it possible for biomappings to import this function without installing indra.

Since filter_out_duplicates is still imported by gilda.generated_terms, it is still available in the namespace and therefore no downstream code needs to be modified.

@cthoyt cthoyt requested a review from bgyori October 28, 2022 15:05
cthoyt and others added 3 commits November 17, 2022 11:28
This PR moves the `filter_out_duplicates()` frunction from the `gilda.generate_terms` module to `gilda.term` module.

This makes it possible for `biomappings` to import this function without installing `indra`.

Since `filter_out_duplicates` is still imported by `gilda.generated_terms`, it is still available in the namespace and therefore no downstream code needs to be modified.
@bgyori bgyori force-pushed the move-filter-duplicates branch from 30cb3b0 to b568cbb Compare November 17, 2022 16:29
@@ -9,7 +9,7 @@
"filter_out_duplicates",
]

logger = logging.getLogger("gilda.term")
logger = logging.getLogger(__name__)
Copy link
Member Author

Choose a reason for hiding this comment

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

I typically do this but noticed it wasn't the case in the other module, maybe we can normalize that one now too

@bgyori bgyori merged commit a189a7b into gyorilab:master Nov 17, 2022
@cthoyt cthoyt deleted the move-filter-duplicates branch November 17, 2022 19:17
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.

2 participants