Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5151e37

Browse filesBrowse files
committed
changes to format
1 parent 88ec64d commit 5151e37
Copy full SHA for 5151e37

File tree

1 file changed

+7
-7
lines changed
Filter options

1 file changed

+7
-7
lines changed

‎tfx_addons/copy_example_gen/component.py

Copy file name to clipboardExpand all lines: tfx_addons/copy_example_gen/component.py
+7-7
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def _split_names_string_builder(split_names_list: List):
5757
index = 0
5858

5959
for element in split_names_list:
60-
if(index == urlist_len):
61-
str1 += "\"" + element + "\"" + "]"
62-
break
60+
if (index == urlist_len):
61+
str1 += "\"" + element + "\"" + "]"
62+
break
6363
str1 += "\"" + element + "\"" + ","
6464
index += 1
6565
return str1
@@ -79,8 +79,8 @@ def CopyExampleGen(
7979
Following the creation of the `Split-name` folder, the files in the uri path will then be copied
8080
into the designated `Split-name` folder.
8181
82-
"""
83-
82+
"""
83+
8484
input_dict = json.loads(input_json_str)
8585

8686
# Parse input_dict: creates a directory from the split-names and tfrecord uris provided
@@ -90,13 +90,13 @@ def CopyExampleGen(
9090

9191
split_names_string = _split_names_string_builder(split_names)
9292
output_example.split_names = str(split_names_string)
93-
93+
9494
# Make directories
9595
tfrecords_list = []
9696
output_example_uri = output_example.uri
9797

9898
for key, value in input_dict.items():
99-
split_value=(f"/Split-{key}/")
99+
split_value = (f"/Split-{key}/")
100100
fileio.mkdir(f"{output_example_uri}{split_value}")
101101
tfrecords_list = fileio.glob(f"{input_dict[key]}*.gz")
102102

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.