Skip to content

Conversation

@timothy-nunn
Copy link
Contributor

@timothy-nunn timothy-nunn commented Mar 11, 2024

Making available some of the changes that removes the hard-coded double power shape function and allows arbitrary shape functions.

We can now use ConstrainPaxisIpArbShape or ConstrainBetapIpArbShape to constrain the profiles with an arbitrary shape_function. By default, these will use the DoublePowerShapeFunction but any class that implements the new ProfileShapeFunction interface will work.

Backwards compatibility ensured by writing the ConstrainBetapIp and ConstrainPaxisIp classes to point at their arbitrary shape counterpart.

Added tests using the existing test_jtor.py to ensure these additions replicate the behaviour of the code before these changes.

Example 01 updated to use the new classes but I don't think updating all of the examples will be necessary--let me know your thoughts on this.

@ZedThree
Copy link
Collaborator

LGTM!

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