Просмотр исходного кода

Move the script to scripts dir

Lipu Fei 6 лет назад
Родитель
Сommit
bb578be066
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      scripts/50_inst_per_sec.py

+ 2 - 1
tests/50_inst_per_sec.py → scripts/50_inst_per_sec.py

@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 # Copyright (c) 2018 Ultimaker B.V.
 # Cura is released under the terms of the LGPLv3 or higher.
 
@@ -5,7 +6,6 @@ import copy
 import math
 import os
 import sys
-import random
 from typing import Dict, List, Optional, Tuple
 
 
@@ -98,6 +98,7 @@ def calc_intersection_distance(initial_feedrate: float, final_feedrate: float, a
 def calc_max_allowable_speed(acceleration: float, target_velocity: float, distance: float) -> float:
     return math.sqrt(target_velocity * target_velocity - 2 * acceleration * distance)
 
+
 class Command:
     def __init__(self, cmd_str: str) -> None:
         self._cmd_str = cmd_str  # type: str