extract_metdata: fix whitespace errors

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-05-09 08:17:24 -04:00
parent a746019790
commit 52f08eda08
1 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ class Simplify3D(BaseSlicer):
return self._parse_min_float(r"G1\sZ\d+\.\d*", self.header_data) return self._parse_min_float(r"G1\sZ\d+\.\d*", self.header_data)
def parse_layer_height(self): def parse_layer_height(self):
self.layer_height = _regex_find_first( self.layer_height = _regex_find_first(
r";\s+layerHeight,(\d+\.?\d*)", self.header_data) r";\s+layerHeight,(\d+\.?\d*)", self.header_data)
return self.layer_height return self.layer_height
@ -563,7 +563,7 @@ class IdeaMaker(BaseSlicer):
if len(length) == len(density) == len(diameter): if len(length) == len(density) == len(diameter):
# calc individual weight for each filament with m=pi/4*d²*l*rho # calc individual weight for each filament with m=pi/4*d²*l*rho
weights = [(pi/4 * diameter[i]**2 * length[i] * density[i]/10**6) weights = [(pi/4 * diameter[i]**2 * length[i] * density[i]/10**6)
for i in range(len(length))] for i in range(len(length))]
return sum(weights) return sum(weights)
return None return None