Skip to content

Refactor default parameter calculators get_gamma/f0/ks_default into S3 generics#429

Open
gustavdelius wants to merge 2 commits into
masterfrom
get-defaults-s3
Open

Refactor default parameter calculators get_gamma/f0/ks_default into S3 generics#429
gustavdelius wants to merge 2 commits into
masterfrom
get-defaults-s3

Conversation

@gustavdelius

Copy link
Copy Markdown
Member

This PR refactors other default parameter calculators into S3 generics with MizerParams-specific methods.

Summary of Changes

  1. S3 Generic Conversion:
    Converted get_gamma_default(), get_f0_default(), and get_ks_default() into S3 generics.
  2. MizerParams Methods:
    Defined specialized implementations get_gamma_default.MizerParams(), get_f0_default.MizerParams(), and get_ks_default.MizerParams().
  3. Unit Tests:
    Added validation tests verifying correct S3 generic dispatch on MizerParams for these three default calculators in tests/testthat/test-species_params.R.

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