Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Code updated to follow Google Python Style Guide #38

Merged
merged 4 commits into from
Jan 28, 2022

Conversation

gregordecristoforo
Copy link
Member

This commit changes variable names and restructures parts of the code to follow the Google Python Style Guide (https://google.github.io/styleguide/pyguide.html#s3.16.2-naming-conventions). Pylint is used to measure the code quality, however not all suggestions are adapted as I believe they are not very reasonable for this project.

This commit changes variable names and restructures part of the code to follow Google Python Style Guide (https://google.github.io/styleguide/pyguide.html#s3.16.2-naming-conventions). Pylint is used to measure the code quality, however not all suggestions are adapted as I believe they are not very reasonable in this context.
the previous commit didn't pass hte type checker on github workflow, on my machine however it does. I reversed the previous restructuring.
@codecov
Copy link

codecov bot commented Jan 26, 2022

Codecov Report

Merging #38 (3c8fa42) into main (213591a) will increase coverage by 2.58%.
The diff coverage is 98.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   92.88%   95.47%   +2.58%     
==========================================
  Files           6        6              
  Lines         225      221       -4     
  Branches       35       33       -2     
==========================================
+ Hits          209      211       +2     
+ Misses         13        9       -4     
+ Partials        3        1       -2     
Impacted Files Coverage Δ
blobmodel/model.py 98.18% <97.67%> (+1.57%) ⬆️
blobmodel/blobs.py 100.00% <100.00%> (+3.03%) ⬆️
blobmodel/plotting.py 73.33% <100.00%> (ø)
blobmodel/stochasticality.py 97.77% <100.00%> (+4.44%) ⬆️
blobmodel/geometry.py 100.00% <0.00%> (+5.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fde7c01...3c8fa42. Read the comment docs.

In hte current implementation the parameters "labels" and "label_border" are moved from make_realization() to Model(). I forgot to update the Readme.md in the previous commit
@gregordecristoforo gregordecristoforo merged commit 8cca26a into main Jan 28, 2022
@gregordecristoforo gregordecristoforo deleted the code_style branch January 28, 2022 10:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants