Skip to content

Commit

Permalink
Fix annotation around counts check
Browse files Browse the repository at this point in the history
  • Loading branch information
rchristie committed Oct 21, 2024
1 parent 1c2681c commit 87738d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scaffoldmaker/meshtypes/meshtype_3d_tubenetwork1.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def checkOptions(cls, options):
if options["Number of elements around"] < 8:
options["Number of elements around"] = 8
elif options["Number of elements around"] % 4:
options["Number of elements around"] += 4 - options["Number of elements around"] % 4
options["Number of elements around"] += 4 - (options["Number of elements around"] % 4)

annotationAroundCounts = options["Annotation numbers of elements around"]
minAroundCount = options["Number of elements around"]
Expand All @@ -126,7 +126,7 @@ def checkOptions(cls, options):
if annotationAroundCounts[i] < 8:
annotationAroundCounts[i] = 8
elif annotationAroundCounts[i] % 4:
annotationAroundCounts[i] += 4 - annotationAroundCounts[i]
annotationAroundCounts[i] += 4 - (annotationAroundCounts[i] % 4)
if annotationAroundCounts[i] < minAroundCount:
minAroundCount = annotationAroundCounts[i]

Expand Down

0 comments on commit 87738d2

Please sign in to comment.