-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
v5.1.1 #207
Conversation
Reviewer's Guide by SourceryThis pull request fixes an issue where output folders were not being created, adds folder creation logic, refactors the Sequence diagram for output folder creation during Klippy connectionsequenceDiagram
participant KlippyConnection as KC
participant ShakeTune as ST
participant ShakeTuneConfig as STC
participant Path as P
KC->>ST: _on_klippy_connect()
ST->>STC: get_results_subfolders()
loop For each subfolder
ST->>P: mkdir(parents=True, exist_ok=True)
end
Updated class diagram for ShakeTuneclassDiagram
class ShakeTune {
-ShakeTuneConfig _st_config
-float timeout
-bool _show_macros
+__init__(config)
-_initialize_config(config)
-_register_commands()
-_on_klippy_connect()
}
class ShakeTuneConfig {
-Path result_folder_path
-int keep_n_results
-bool keep_raw_data
-int chunk_size
-float max_freq
-int dpi
+get_results_subfolders()
}
ShakeTune -- ShakeTuneConfig : has a
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Frix-x - I've reviewed your changes - here's some feedback:
Overall Comments:
- The changes to
_initialize_config
seem unnecessary - can you explain why you're assigning the config values to local variables before assigning them toself
? - It looks like you're creating the output folders in multiple places - can you consolidate this logic?
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
fix the output folders creation
Summary by Sourcery
Bug Fixes: