Skip to content

Conversation

@feegeer
Copy link

@feegeer feegeer commented Jan 9, 2026

After investigating the test folder and running the tests, I noticed that not all of the functions in pylife.strength.fkm_nonlinear.parameter_calculations are covered with unit tests.

With this PR, unit/regression tests for the following functions (all are from pylife.strength.fkm_nonlinear.parameter_calculations) are added:

  • calculate_roughness_parameter
  • calculate_roughness_material_woehler_parameters_P_RAM
  • calculate_roughness_material_woehler_parameters_P_RAJ
  • calculate_roughness_component_woehler_parameters_P_RAM
  • calculate_roughness_component_woehler_parameters_P_RAJ
  • calculate_component_woehler_parameters_P_RAM ( I only found a higher-level test for this one)
  • calculate_component_woehler_parameters_P_RAJ ( I only found a higher-level test for this one)

With those additions, the test coverage for the parameter_calculations module would increase from 74% to 96%

I did not have direct access to the FKM Richtlinie Nonlinear while writing the tests. If the parametrizations would need to be adjusted to align with reference values, I would be happy to update them after review.

@feegeer
Copy link
Author

feegeer commented Jan 9, 2026

I am not sure about the sign-off, so I have left it out for now

@feegeer feegeer marked this pull request as ready for review January 9, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant