simplify dpoints computation
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 15 Oct 2021 03:21:12 +0000 (20:21 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 15 Oct 2021 03:21:12 +0000 (20:21 -0700)
width is already set to fixed_width, we don't need to have a separate case

src/ieee754/part/layout_experiment.py

index 4fabaa5fc762d0607f29435c02f870d6c45aa8a2..88f058cd5796bc24b017b0798506da65fc95f44a 100644 (file)
@@ -151,10 +151,7 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None):
 
     # do not need the breakpoints at the very start or the very end
     dpoints.pop(0, None)
-    if fixed_width is not None:
-        dpoints.pop(fixed_width, None)
-    else:
-        dpoints.pop(width, None)
+    dpoints.pop(width, None)
     plist = list(dpoints.keys())
     plist.sort()
     print("dpoints")