Skip to content

Commit 8f216de

Browse files
committed
formatting more or less
1 parent 48174a0 commit 8f216de

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

pixelsort.py

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,25 @@ def ElementaryCA(pixels: Any, args: Any, width: int, height: int) -> Any:
106106
width /= 4
107107
height /= 4
108108
if args.filelink in ["False", ""]:
109-
rules: List = [26, 19, 23, 25, 35, 106, 11, 110, 45, 41, 105, 54, 3, 15, 9, 154, 142]
109+
rules: List = [
110+
26,
111+
19,
112+
23,
113+
25,
114+
35,
115+
106,
116+
11,
117+
110,
118+
45,
119+
41,
120+
105,
121+
54,
122+
3,
123+
15,
124+
9,
125+
154,
126+
142,
127+
]
110128

111129
if not args.int_function == "snap":
112130
ruleprompt = input(
@@ -208,9 +226,7 @@ def UploadImg(img: str) -> str:
208226
link: str = output["data"]["link"]
209227
return link
210228
except FileNotFoundError:
211-
print(
212-
f"{'---'*15}\n'{img}' not usable!\nPlease find a proper image to use this script!\n{'---'*15}"
213-
)
229+
print(f"{'---'*15}\n'{img}' not usable!\n{'---'*15}")
214230
exit()
215231

216232

@@ -1275,10 +1291,14 @@ def main():
12751291
size0, size1 = thanos_img.size
12761292
for y in ProgressBars(size1, "The end is near..."):
12771293
for x in range(size0):
1278-
ImgPixels(thanos_img, x, y, sorted_pixels if preset_true else pixels)
1294+
ImgPixels(
1295+
thanos_img, x, y, sorted_pixels if preset_true else pixels
1296+
)
12791297
thanos_img.save("images/thanos_img.png")
12801298
print("I am... inevitable...")
1281-
sorted_pixels = interval_function(intervals if preset_true else pixels, __args, internet)
1299+
sorted_pixels = interval_function(
1300+
intervals if preset_true else pixels, __args, internet
1301+
)
12821302
else:
12831303
sorted_pixels = interval_function(pixels, __args, internet)
12841304
else:
@@ -1332,7 +1352,7 @@ def main():
13321352
f'Args: {(arg_parse_input if arg_parse_input is not None else "No args")}\n'
13331353
f'Sorted on: {date_time}\n\nSorted image: {link}\n{(35 * "-")}'
13341354
)
1335-
1355+
13361356
print("Uploading to DB...")
13371357
dbURL = "https://pixelsorting-a289.restdb.io/rest/outputs"
13381358
payload = dumps(

0 commit comments

Comments
 (0)