Add deprecation helpers and rename API to snake_case - #51
Open
chemiskyy wants to merge 5 commits into
Open
Conversation
Introduce fedoo.util.deprecation with deprecated_alias/rename helpers and migrate many public APIs from PascalCase to snake_case while keeping backward-compatible aliases. Key changes: add deprecated_alias utilities; rename weakform factories (ImplicitDynamic, StressEquilibriumRI, PoroMechanics, PoroMechanicsSimple -> implicit_dynamic, stress_equilibrium_ri, poro_mechanics, poro_mechanics_simple) and expose deprecated PascalCase aliases; rename various problem methods (GetElasticEnergy/GetKineticEnergy/GetXdot/... -> get_elastic_energy, get_kinetic_energy, get_velocity, set_initial_displacement, set_initial_velocity, set_initial_acceleration, set_rayleigh_damping, etc.) and provide deprecated aliases; update localframe API (Rotate/GenerateCylindricalLocalFrame -> rotate, generate_cylindrical_local_frame) with aliases; make WeakFormBase.nvar a property; improve axi_to_3d to return the dataset and raise on wrong types; update multiple examples and tests to use the new API and adjusted mesh/element set names. These changes modernize the API naming while preserving backward compatibility via deprecation warnings.
…modernize dynamic constructor keywords, and update affected examples, documentation, and tests.
Bump simcoon dependency to >=2.0 and adjust the default tangent_mode to match simcoon 2.0's enum mapping. The default was changed from 0 to 1 so the code uses the continuum tangent under simcoon 2.0; comments were updated to document the new numbering and the remapping from pre-2.0 values.
…d hex8r elements -> Correct Fbar and Bbar formulation when mesh is distorted - Rafactor ExplicitDynamic problem to use the time integrators - Merge Newmark problem in Linear one -> Now linear accept to be associated with time integrators and include a solve_history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce fedoo.util.deprecation with deprecated_alias/rename helpers and migrate many public APIs from PascalCase to snake_case while keeping backward-compatible aliases. Key changes: add deprecated_alias utilities; rename weakform factories (ImplicitDynamic, StressEquilibriumRI, PoroMechanics, PoroMechanicsSimple -> implicit_dynamic, stress_equilibrium_ri, poro_mechanics, poro_mechanics_simple) and expose deprecated PascalCase aliases; rename various problem methods (GetElasticEnergy/GetKineticEnergy/GetXdot/... -> get_elastic_energy, get_kinetic_energy, get_velocity, set_initial_displacement, set_initial_velocity, set_initial_acceleration, set_rayleigh_damping, etc.) and provide deprecated aliases; update localframe API (Rotate/GenerateCylindricalLocalFrame -> rotate, generate_cylindrical_local_frame) with aliases; make WeakFormBase.nvar a property; improve axi_to_3d to return the dataset and raise on wrong types; update multiple examples and tests to use the new API and adjusted mesh/element set names. These changes modernize the API naming while preserving backward compatibility via deprecation warnings.