Deriving RollPass and ThreeRollPass from Common Base#244
Conversation
ChRen95
left a comment
There was a problem hiding this comment.
So more or less moved the contents from RollPass to BaseRollPass.
Generally I think it's a good idea and will bring more structure to the codebase.
Also it makes deriving Classes easier.
|
I believe there are still some places where pyroll-core/pyroll/core/roll_pass/hookimpls/deformation_unit.py Lines 94 to 96 in 77e9eda Or am i understanding this wrong? |
So you don't have to change all the references from
|
|
Yes but previously this function was also able to be used by PS: I also use this function in the zouhar-package for ThreeRollPasses which is where i noticed that for example. |
Your right, I thought the hirachy was still BaseRollPass -> RollPass -> ThreeRollPass but now is BaseRollPass -> RollPass, BaseRollPass -> ThreeRollPass. So you can adjust those and commit. |
This is why I said
@RichardPfr you are right with this hook. But this impl has nevertheless to be implemented on |
|
The wrong place of this hook impl made me missing it. I fixed, moved and simplified it. @BaseRollPass.Profile.contact_lines
def contact_contour_lines(self: BaseRollPass.Profile):
rp = self.roll_pass
return [linemerge(cl.intersection(self.cross_section.exterior)) for cl in rp.contour_lines] |
4f55da2 to
7b77f01
Compare
|
rebase |
As an idea to solve the issues that rose in #241
This is a breaking change, so at least new minor version.
For example the report breaks with this PR, because there is a check for
RollPassonly, which yields now results in 3RP only sequences.This would also simplify future intro of multiple rolls as in #104