Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2018-09-06 15:22:36 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-09-06 15:22:36 +0300
commitbb578be0669504cb34cb8b67e346e1da64b47b25 (patch)
tree68846186fbec9e40a01edf5b7aa2145ced8bfbc2
parentea2b0d04800291845af0ffbfa75500ec3b2c4413 (diff)
Move the script to scripts dir
-rw-r--r--scripts/50_inst_per_sec.py (renamed from tests/50_inst_per_sec.py)3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/50_inst_per_sec.py b/scripts/50_inst_per_sec.py
index 91992c813a..e61228f935 100644
--- a/tests/50_inst_per_sec.py
+++ b/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