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

refactor(harmonic-oscillator): separate the class of simple and damped HO #48

Merged
merged 7 commits into from
Apr 16, 2024

Conversation

emptymalei
Copy link
Member

@emptymalei emptymalei commented Apr 8, 2024

Resolves #34

Changed

  • Introduced classes HarmonicOscillatorBase, SimpleHarmonicOscillator, DampedHarmonicOscillator
  • Revised tutorial of harmonic oscillators.

Copy link
Contributor

github-actions bot commented Apr 8, 2024

Coverage

Coverage Report (716157f, 3.11, macos-latest)
FileStmtsMissCoverMissing
hamilflow
   __init__.py00100% 
hamilflow/models
   __init__.py00100% 
   brownian_motion.py4111 98%
   harmonic_oscillator.py8244 95%
   pendulum.py5677 88%
TOTAL1791293% 

Tests Skipped Failures Errors Time
58 0 💤 0 ❌ 0 🔥 29.162s ⏱️

Copy link
Contributor

github-actions bot commented Apr 8, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-04-16 19:05 UTC

@emptymalei emptymalei marked this pull request as ready for review April 8, 2024 18:38
@emptymalei emptymalei added the enhancement New feature or request label Apr 8, 2024
@emptymalei
Copy link
Member Author

@cmp0xff I created this PR. Let's see if this matches your requirement.

hamilflow/models/harmonic_oscillator.py Outdated Show resolved Hide resolved
hamilflow/models/harmonic_oscillator.py Outdated Show resolved Hide resolved
hamilflow/models/harmonic_oscillator.py Outdated Show resolved Hide resolved
hamilflow/models/harmonic_oscillator.py Outdated Show resolved Hide resolved
docs/tutorials/harmonic_oscillator.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@cmp0xff cmp0xff left a comment

Choose a reason for hiding this comment

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

@emptymalei

@emptymalei
Copy link
Member Author

Didn't have time to finish the adjustments the other day. Now it should be ready to review.

@emptymalei emptymalei merged commit 08e0e08 into main Apr 16, 2024
10 checks passed
@emptymalei emptymalei deleted the refactor/sho-class-simplification branch April 16, 2024 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate simple harmonic oscillator from the damped oscillators
2 participants