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

Cleanup #167

Merged
merged 5 commits into from
Dec 4, 2019
Merged

Cleanup #167

merged 5 commits into from
Dec 4, 2019

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Dec 3, 2019

Bring code quality back to A.

@dweindl dweindl requested a review from a team December 3, 2019 21:49
@codecov-io
Copy link

codecov-io commented Dec 4, 2019

Codecov Report

Merging #167 into develop will not change coverage.
The diff coverage is 70.58%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #167   +/-   ##
========================================
  Coverage    71.21%   71.21%           
========================================
  Files           12       12           
  Lines         1181     1181           
  Branches       272      272           
========================================
  Hits           841      841           
  Misses         290      290           
  Partials        50       50
Impacted Files Coverage Δ
petab/petablint.py 0% <0%> (ø) ⬆️
petab/sbml.py 65.83% <100%> (ø) ⬆️
petab/visualize/data_overview.py 100% <100%> (ø) ⬆️
petab/lint.py 50.67% <46.15%> (ø) ⬆️
petab/core.py 80% <93.33%> (ø) ⬆️

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 ebef1fc...f79cd7e. Read the comment docs.

Copy link
Member

@yannikschaelte yannikschaelte left a comment

Choose a reason for hiding this comment

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

should be fine

@@ -1,7 +1,6 @@
import numpy as np
import pandas as pd
import petab
Copy link
Member

Choose a reason for hiding this comment

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

alphabetic ordering + own tools / petab last? very in favor.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah
pycharm does the job for you (code -> optimize imports)

@@ -239,7 +241,7 @@ def assert_parameter_estimate_is_boolean(parameter_df):
0 or 1.
"""
for estimate in parameter_df['estimate']:
if not int(estimate) in [True, False]:
if int(estimate) not in [True, False]:
Copy link
Member

Choose a reason for hiding this comment

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

duh

for i in range(len(unique_noise)):
for j in range(len(unique_sc)):
# Find the position of all instances of unique_noise[i]
for i_noise, cur_noise in enumerate(unique_noise):
Copy link
Member

Choose a reason for hiding this comment

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

yessssssss

@dweindl dweindl removed the request for review from a team December 4, 2019 09:48
@dweindl dweindl merged commit 60d5e1f into develop Dec 4, 2019
@dweindl dweindl deleted the fix_code_quality branch December 4, 2019 09:48
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.

3 participants