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 Python UDF methods out of their own class. #475

Merged
merged 1 commit into from
May 29, 2020
Merged

Conversation

ruebot
Copy link
Member

@ruebot ruebot commented May 29, 2020

GitHub issue(s): #467

What does this Pull Request do?

Move Python UDF methods out of their own class.

How should this be tested?

- Resolve #467
- README button colour tweak for UserDocs
@ruebot ruebot requested a review from ianmilligan1 May 29, 2020 12:31
@codecov
Copy link

codecov bot commented May 29, 2020

Codecov Report

Merging #475 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #475   +/-   ##
=======================================
  Coverage   83.88%   83.88%           
=======================================
  Files          44       44           
  Lines        1297     1297           
  Branches      250      250           
=======================================
  Hits         1088     1088           
  Misses         80       80           
  Partials      129      129           

@@ -1,5 +1,39 @@
from aut.app import Extract_Popular_Images, Write_Gexf, Write_Graphml
from aut.common import WebArchive
from aut.udfs import Udf
from aut.udfs import (
compute_image_size,
Copy link
Member

Choose a reason for hiding this comment

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

All appropriately pythonic, 👍


__all__ = ["Extract_Popular_Images", "Udf", "WebArchive", "Write_Gexf", "Write_Graphml"]
__all__ = [
"Extract_Popular_Images",
Copy link
Member

Choose a reason for hiding this comment

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

Apologies in advance if this has been hashed out already, but have we agreed on a naming convention for these? Naming seems inconsistent at present...

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@ianmilligan1 ianmilligan1 left a comment

Choose a reason for hiding this comment

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

Ran through the two provided notebooks with CPP sample data - thanks for those @ruebot. All works perfectly!

@ianmilligan1 ianmilligan1 merged commit 76c8247 into master May 29, 2020
@ianmilligan1 ianmilligan1 deleted the issue-467 branch May 29, 2020 18:22
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.

Python UDFs - class or not?
3 participants