Skip to content

Commit

Permalink
PEP8 Python app method names. (#477)
Browse files Browse the repository at this point in the history
- Resolve 468
  • Loading branch information
ruebot authored May 29, 2020
1 parent 76c8247 commit 8037745
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/main/python/aut/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aut.app import Extract_Popular_Images, Write_Gexf, Write_Graphml
from aut.app import ExtractPopularImages, WriteGEXF, WriteGraphML
from aut.common import WebArchive
from aut.udfs import (
compute_image_size,
Expand All @@ -18,10 +18,10 @@
)

__all__ = [
"Extract_Popular_Images",
"ExtractPopularImages",
"WebArchive",
"Write_Gexf",
"Write_Graphml",
"WriteGEXF",
"WriteGraphML",
"compute_image_size",
"compute_md5",
"compute_sha1",
Expand Down
6 changes: 3 additions & 3 deletions src/main/python/aut/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pyspark.sql.functions import desc, first


def Extract_Popular_Images(d, limit, min_width, min_height):
def ExtractPopularImages(d, limit, min_width, min_height):
df = d.select("url", "md5")
count = df.groupBy("md5").count()

Expand All @@ -19,7 +19,7 @@ def Extract_Popular_Images(d, limit, min_width, min_height):
)


def Write_Gexf(data, gexf_path):
def WriteGEXF(data, gexf_path):
output_file = open(gexf_path, "x")
end_attribute = '" />\n'
vertices = set()
Expand Down Expand Up @@ -75,7 +75,7 @@ def Write_Gexf(data, gexf_path):
return


def Write_Graphml(data, graphml_path):
def WriteGraphML(data, graphml_path):
output_file = open(graphml_path, "x")
nodes = set()

Expand Down

0 comments on commit 8037745

Please sign in to comment.