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

feat: HarmonicOscillatorPotential #262

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

nstarman
Copy link
Contributor

No description provided.

@nstarman nstarman added this to the v0.1 milestone Apr 26, 2024
@nstarman nstarman force-pushed the pot-harmonic-oscillator branch 2 times, most recently from ddc8d32 to bc25ccb Compare April 27, 2024 20:31
@nstarman nstarman closed this Apr 27, 2024
@nstarman nstarman reopened this Apr 27, 2024
@nstarman nstarman marked this pull request as ready for review April 27, 2024 22:44
@nstarman nstarman force-pushed the pot-harmonic-oscillator branch 5 times, most recently from 758791b to b7e7f65 Compare April 28, 2024 02:55

"""

omega: AbstractParameter = ParameterField(dimensions="frequency") # type: ignore[assignment]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Allow frequency or angular frequency? Or only angular frequency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be great to offer many input options. On some classes I've starting building the .constructor method for this. Supporting alternative dimensions for parameters at initialization is a great use case for that. The constructed class always has the same fields with same dimensions, but there are a million ways to get there!

@adrn adrn mentioned this pull request Aug 24, 2024
86 tasks
@nstarman nstarman force-pushed the pot-harmonic-oscillator branch 7 times, most recently from 7904050 to 465b613 Compare September 19, 2024 15:22
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.59%. Comparing base (e275851) to head (f112582).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #262      +/-   ##
==========================================
+ Coverage   96.57%   96.59%   +0.02%     
==========================================
  Files          76       76              
  Lines        3003     3028      +25     
==========================================
+ Hits         2900     2925      +25     
  Misses        103      103              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
@nstarman nstarman merged commit 2f7359e into GalacticDynamics:main Sep 19, 2024
15 checks passed
@nstarman nstarman deleted the pot-harmonic-oscillator branch September 19, 2024 18:12
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