mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Remove local variable.
This commit is contained in:
parent
4973d53057
commit
2f1f370fe0
1 changed files with 2 additions and 3 deletions
|
@ -417,10 +417,9 @@ class SimulationView(CuraView):
|
|||
return self._max_flow_rate
|
||||
|
||||
def getMinFlowRate(self) -> float:
|
||||
min_flow_rate = self._min_flow_rate
|
||||
if abs(min_flow_rate - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
|
||||
if abs(self._min_flow_rate - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
|
||||
return 0.0 # If it's still max-float, there are no measurements. Use 0 then.
|
||||
return min_flow_rate
|
||||
return self._min_flow_rate
|
||||
|
||||
def calculateMaxLayers(self) -> None:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue