Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make additional use of ParameterGroup #404

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

mabruzzo
Copy link
Contributor

@mabruzzo mabruzzo commented May 23, 2024

Pull request summary

Modify some existing parsing logic to make use of ParameterGroup.

Detailed Description

The ParameterGroup class was introduced back in #341 (the main body of that PR calls the class ParameterAccessor -- the name was changed based on feedback). It is a class whose sole-purpose is to provide access to parameters within a specific parameter-group (without specifying the full path to a parameter).

This functionality was duplicated in the pre-existing Parameters class. However, the Parameters class already provided a LOT of other functionality and this particular functionality is achieved by managing a bunch of internal state.

Part of the intention when introducing ParameterGroup was to eventually replace existing code that already made use of this functionality provided by the Parameters class so that it now makes use of the ParametersGroup class instead (in other words, the underlying logic is not changing). This is what this PR does.

The benefits are twofold:

  • the code making use of this functionality is now a little more explicit
  • it will allow us to remove this duplicated functionality from the Parameters class (this will actually be somewhat helpful for simplifying code in SMP-mode).

I plan to remove the duplicated functionality in a future, separate PR since it will involve a number of modifications to existing unit-tests & it would be helpful to get the current changes into the main codebase. (Plus these changes have been kicking around on my computer for 3 months and I want to get them off my plate)

EDIT: MAKE SURE THAT YOU SEE THAT ALL CIRCLECI TESTS HAVE PASSED BEFORE MERGING, THEY DON'T ALL SEEM TO APPEAR RIGHT NOW

mabruzzo and others added 7 commits May 23, 2024 08:55
…meterGroup (the parameters are still curently stored in Config, but this should help us remove the relative parameter-path stuff from Parameters down the line.
…oMethodCheck (this has not been moved out of EnzoConfig quite yet.
…f_parameter_names()

This argumentless version depended on the group that is currently
tracked by the Parameters class.
@bwoshea
Copy link
Contributor

bwoshea commented Jun 14, 2024

@mabruzzo it seems that a bunch of tests are failing here. It looks like it'll be easy to fix - could you do that when you get a second, and we'll then review this PR?

@gregbryan gregbryan requested a review from bwoshea December 12, 2024 16:56
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