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 dunder init #349

Merged
merged 26 commits into from
May 15, 2024
Merged

Refactor dunder init #349

merged 26 commits into from
May 15, 2024

Conversation

waltsims
Copy link
Owner

No description provided.

@waltsims waltsims self-assigned this Apr 16, 2024
@waltsims waltsims added this to the v0.3.4 milestone Apr 16, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 78.04878% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 68.00%. Comparing base (a9e12b5) to head (ed88cf8).

Files Patch % Lines
kwave/__init__.py 78.04% 7 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #349   +/-   ##
=======================================
  Coverage   68.00%   68.00%           
=======================================
  Files          48       48           
  Lines        7066     7061    -5     
  Branches     1605     1605           
=======================================
- Hits         4805     4802    -3     
+ Misses       1687     1686    -1     
+ Partials      574      573    -1     
Flag Coverage Δ
3.10 68.18% <78.04%> (+0.01%) ⬆️
3.11 68.18% <78.04%> (+0.01%) ⬆️
3.12 68.18% <78.04%> (+0.01%) ⬆️
3.9 67.98% <78.04%> (+0.01%) ⬆️
ubuntu-latest 67.97% <78.04%> (+0.03%) ⬆️
windows-latest 67.97% <78.04%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@waltsims waltsims marked this pull request as ready for review May 14, 2024 17:56
Copy link
Collaborator

@faridyagubbayli faridyagubbayli left a comment

Choose a reason for hiding this comment

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

Some comments

kwave/__init__.py Show resolved Hide resolved
kwave/__init__.py Outdated Show resolved Hide resolved
# Constants and Configurations
URL_BASE = "https://github.com/waltsims/"
BINARY_VERSION = "v1.3.0"
PREFIX = f"{URL_BASE}kspaceFirstOrder-{{}}-{{}}/releases/download/{BINARY_VERSION}/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why nested curly braces ({{}})?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Not sure if it's good smell or where I got it from but allows you to evaluate the f-string twice. The first evaluation leaves the curly brackets in the f-string for the second evaluation step.

Copy link
Owner Author

Choose a reason for hiding this comment

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

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm interesting, I never saw double braces in f-strings before and not sure if this is a good convention to follow or not.

kwave/__init__.py Outdated Show resolved Hide resolved
kwave/__init__.py Outdated Show resolved Hide resolved
kwave/__init__.py Outdated Show resolved Hide resolved
@waltsims
Copy link
Owner Author

Thanks for the comments! I've revisited things this evening. Have another look when you have a second.

Copy link
Collaborator

@faridyagubbayli faridyagubbayli left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for working on this!

@waltsims waltsims merged commit 6f45bc2 into master May 15, 2024
112 checks passed
@waltsims waltsims deleted the refactor_dunder_init branch May 15, 2024 14:06
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.

None yet

2 participants