Skip to content

Commit 1b5cbba

Browse files
axtimhausChRen95
andauthored
Deriving RollPass and ThreeRollPass from Common Base (#244)
* bump version to 2.2a * derive RollPass and ThreeRollBase from common base class * adapt hooking point to base class * fix * fixed longitudinal angle calculation * fix contact contour lines --------- Co-authored-by: Christoph Renzing <christoph.renzing@imf.tu-freiberg.de>
1 parent b21686e commit 1b5cbba

12 files changed

Lines changed: 544 additions & 488 deletions

File tree

hatch.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ path = ".venv"
1111
dependencies = [
1212
"ipython ~= 8.0",
1313
"pytest ~= 7.0",
14-
"pyroll-report ~= 2.0.0",
14+
"pyroll-report ~= 2.0",
1515
"jupyter",
1616
]
1717
features = ["plotly", "matplotlib"]
@@ -20,6 +20,7 @@ features = ["plotly", "matplotlib"]
2020
path = ""
2121
dependencies = [
2222
"pytest ~= 7.0",
23+
"pyroll-report ~= 2.0",
2324
]
2425

2526
[[envs.test.matrix]]

pyroll/core/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .grooves import *
44
from .transport import Transport, CoolingPipe
5-
from .roll_pass import RollPass, DeformationUnit, ThreeRollPass
5+
from .roll_pass import BaseRollPass, RollPass, DeformationUnit, ThreeRollPass
66
from .unit import Unit
77
from .roll import Roll
88
from .profile import *
@@ -12,25 +12,25 @@
1212
from .disk_elements import DiskElementUnit
1313
from .config import Config, config
1414

15-
VERSION = "2.1.8"
15+
VERSION = "2.2.0a0"
1616

1717
root_hooks.extend(
1818
[
19-
RollPass.roll_force,
20-
RollPass.Roll.roll_torque,
21-
RollPass.elongation_efficiency,
19+
BaseRollPass.roll_force,
20+
BaseRollPass.Roll.roll_torque,
21+
BaseRollPass.elongation_efficiency,
2222
Unit.power,
2323
Unit.OutProfile.cross_section,
2424
Unit.OutProfile.classifiers,
2525
Unit.OutProfile.strain,
2626
Unit.OutProfile.length,
2727
Unit.OutProfile.t,
28-
RollPass.strain_rate,
29-
RollPass.OutProfile.filling_ratio,
30-
RollPass.OutProfile.cross_section_filling_ratio,
31-
RollPass.OutProfile.filling_error,
32-
RollPass.OutProfile.cross_section_error,
33-
RollPass.OutProfile.velocity,
28+
BaseRollPass.strain_rate,
29+
BaseRollPass.OutProfile.filling_ratio,
30+
BaseRollPass.OutProfile.cross_section_filling_ratio,
31+
BaseRollPass.OutProfile.filling_error,
32+
BaseRollPass.OutProfile.cross_section_error,
33+
BaseRollPass.OutProfile.velocity,
3434
PassSequence.log_elongation,
3535
]
3636
)

pyroll/core/roll_pass/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from .base import BaseRollPass
12
from .roll_pass import RollPass
23
from .three_roll_pass import ThreeRollPass
34
from .deformation_unit import DeformationUnit

0 commit comments

Comments
 (0)