using numpy for array calculation

CURA-7647
This commit is contained in:
saumya.jain 2023-11-08 13:29:47 +05:30
parent efda0aaba4
commit 457cecba59
3 changed files with 4 additions and 4 deletions

View file

@ -403,7 +403,7 @@ class SimulationView(CuraView):
return self._max_feedrate
def getSimulationTime(self) -> list:
return [length / feedrate for length, feedrate in zip(self._visible_lengths[self._current_layer_num], self._current_feedrates[self._current_layer_num])]
return self._visible_lengths[self._current_layer_num] / self._current_feedrates[self._current_layer_num]
def getMinThickness(self) -> float:
if abs(self._min_thickness - sys.float_info.max) < 10: # Some lenience due to floating point rounding.