mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
using numpy for array calculation
CURA-7647
This commit is contained in:
parent
efda0aaba4
commit
457cecba59
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -136,7 +136,7 @@ Item
|
|||
Timer
|
||||
{
|
||||
id: simulationTimer
|
||||
interval: parseFloat(UM.SimulationView.getSimulationTime[pathNumber]).toFixed(2) //10 //dont change
|
||||
interval: parseFloat(UM.SimulationView.getSimulationTime[pathNumber]).toFixed(2)
|
||||
running: false
|
||||
repeat: true
|
||||
property int pathNumber : 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue