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

Update how standard primitives are imported internally #482

Merged
merged 4 commits into from
Apr 8, 2019

Conversation

kmax12
Copy link
Contributor

@kmax12 kmax12 commented Apr 5, 2019

This PR updates how the standard primitives are imported to better support loading extra primitives from entry points.

As things stand, if a primitive is loaded from an entry point it overwrites the standard primitive.

With this PR, a user can still access the standard primitives using from featuretools.primitives.standard import PrimitiveName

@codecov
Copy link

codecov bot commented Apr 5, 2019

Codecov Report

Merging #482 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #482   +/-   ##
=======================================
  Coverage   96.23%   96.23%           
=======================================
  Files         100      102    +2     
  Lines        8607     8607           
=======================================
  Hits         8283     8283           
  Misses        324      324
Impacted Files Coverage Δ
featuretools/synthesis/deep_feature_synthesis.py 96.73% <100%> (-0.02%) ⬇️
featuretools/primitives/api.py 100% <100%> (ø) ⬆️
featuretools/primitives/standard/api.py 100% <100%> (ø)
featuretools/primitives/standard/__init__.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c30d842...ebd3150. Read the comment docs.

@kmax12 kmax12 requested a review from rwedge April 5, 2019 20:52
@rwedge
Copy link
Contributor

rwedge commented Apr 5, 2019

Usually we use an api.py file to manage the individual imports for a module and have __init__.py import everything from api.py.

Copy link
Contributor

@rwedge rwedge left a comment

Choose a reason for hiding this comment

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

Looks good

@kmax12 kmax12 merged commit cf98910 into master Apr 8, 2019
@kmax12 kmax12 deleted the standard-primitive-import branch April 8, 2019 15:08
@rwedge rwedge mentioned this pull request Apr 24, 2019
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