Skip to content

User friendly anelasticity classes#7

Open
tom-new wants to merge 8 commits intog-adopt:mainfrom
tom-new:uf-anelasticity
Open

User friendly anelasticity classes#7
tom-new wants to merge 8 commits intog-adopt:mainfrom
tom-new:uf-anelasticity

Conversation

@tom-new
Copy link
Contributor

@tom-new tom-new commented Dec 11, 2024

  • Change CammaranoAnelasticityModel to have a class method constructor that allows specifying the QN model as a string
  • Add equivalent GoesAnelasticityModel
  • Clean up type hinting across anelasticity.py
  • Change 01_anelasticity_models.py accordingly

@tom-new tom-new closed this Mar 27, 2025
@tom-new tom-new reopened this Mar 27, 2025
"""
pass

def build_ghelichkhan_solidus():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm ... I am not sure about having this in the package. The profile I used is basically combining two other profiles. So it's a bit misleading to call it a radial profile. The other problem is that those anelasticity parmaeters need to be agnostic about the solidus profile they are using. So this is also problematic!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I would say leave this out. This can be done still in the examples

Args:
q_profile (str): The name of the parameter set to use (e.g. "Q1" for Q1).
"""
parameters = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These parameters be in the class body, since these are hard-coded values belonging to the class.

@tom-new tom-new closed this Sep 12, 2025
@tom-new
Copy link
Contributor Author

tom-new commented Sep 12, 2025

Fixed docstrings: reopening to re-run tests

@tom-new tom-new reopened this Sep 12, 2025
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.

2 participants