Merge branch 'develop' of Risen/Calc3D_by_Risen into master
This commit is contained in:
commit
3b883bc2d1
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.venv
|
||||
.idea
|
@ -3,7 +3,10 @@ def cost_prise(p, t, h, md, d, st, mk, am, post, x):
|
||||
t = int(t) # время печати, в минутах!!!
|
||||
h = float(h) # тариф электроэнергии
|
||||
md = float(md) # вес детали
|
||||
d = float(d) # коэффициент выбраковки
|
||||
if float(d) < 1:
|
||||
d = 1
|
||||
else:
|
||||
d = float(d) # коэффициент выбраковки
|
||||
st = float(st) # стоимость катушки
|
||||
mk = float(mk) # вес катушки
|
||||
am = float(am) # амортизация
|
||||
@ -15,7 +18,7 @@ def cost_prise(p, t, h, md, d, st, mk, am, post, x):
|
||||
x = int(x) # количество экземпляров
|
||||
except ValueError:
|
||||
x = 1
|
||||
result = (abs(p) / 1000 * abs(t) / 60 * abs(h)) + (abs(md) * abs(d) * (abs(st) / abs(mk)) + abs(am) + abs(post)) * abs(x)
|
||||
result = ((abs(p) / 1000) * (abs(t) / 60) * abs(h) * abs(x)) + (abs(md) * abs(d) * (abs(st) / abs(mk) * abs(x)) + abs(am) + abs(post) * abs(x))
|
||||
return round(result, 2)
|
||||
|
||||
|
||||
|
15
setts.json
Normal file
15
setts.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"settings": {
|
||||
"theme": "Dark",
|
||||
"p": "270",
|
||||
"h": "3",
|
||||
"d": "0",
|
||||
"st": "1500",
|
||||
"mk": "1000",
|
||||
"a": "0",
|
||||
"spi": "0",
|
||||
"marge": "0",
|
||||
"locale": "Ru",
|
||||
"currency": "\u0440\u0443\u0431."
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user