Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Nov 27, 2023
1 parent f67097b commit 14ab58d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions octahedroflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ def output(result, *, name, path, stl=False, step=False, svg=False):

def save_caches_to_disk(clear=True):
return
global part_cash
for part_name, part in part_cash.items():
if not exists(f'{PART_CACHE_STEP_DIR}/{part_name}.STEP'):
output(result=part, name=part_name, path=PART_CACHE_STEP_DIR, step=True)

if clear:
part_cash = {} # Clear out the ram cache

def make_single_pyramid(order):
part_name = inspect.currentframe().f_code.co_name
Expand Down Expand Up @@ -451,11 +444,7 @@ def make_octahedron_fractal(branded=True):
save_caches_to_disk()
stand = None

if branded:
pyramid = make_branded_pyramid()
else:
pyramid = make_unbranded_pyramid()

pyramid = make_branded_pyramid() if branded else make_unbranded_pyramid()
export_pyramid()
mirrored = make_final_mirror()
stand = make_stand(max(0, FINAL_ORDER - 2))
Expand Down

0 comments on commit 14ab58d

Please sign in to comment.