Skip to content

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Aug 3, 2022

Adds some functions to simplify / clean existing PEtab problems:

  • removing unused conditions
  • moving parameters that aren't really condition-dependent from the conditions table to the parameters table

Adds some functions to simplify / clean existing PEtab problems:
* removing unused conditions
* moving parameters that aren't really condition-dependent from the conditions table to the parameters table
@dweindl dweindl marked this pull request as ready for review August 4, 2022 11:36
@dweindl dweindl requested a review from dilpath August 4, 2022 11:36
Copy link
Member

@dilpath dilpath left a comment

Choose a reason for hiding this comment

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

Looks good 👍 Fine as is except for the PARAMETER_NAME comment

"some_parameter": [1.0, 2.0, 3.0],
}
)
expected.set_index(CONDITION_ID, inplace=True)
Copy link
Member

Choose a reason for hiding this comment

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

Could use get_condition_df

NOMINAL_VALUE: [4.0],
ESTIMATE: [0],
})
expected.set_index(PARAMETER_ID, inplace=True)
Copy link
Member

Choose a reason for hiding this comment

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

Could use get_condition_df

Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 4, 2022

Codecov Report

Merging #172 (b8e7ce7) into develop (b6f234e) will increase coverage by 0.93%.
The diff coverage is 62.50%.

@@             Coverage Diff             @@
##           develop     #172      +/-   ##
===========================================
+ Coverage    77.50%   78.44%   +0.93%     
===========================================
  Files           29       30       +1     
  Lines         2601     2649      +48     
  Branches       594      606      +12     
===========================================
+ Hits          2016     2078      +62     
+ Misses         430      411      -19     
- Partials       155      160       +5     
Impacted Files Coverage Δ
petab/simplify.py 62.50% <62.50%> (ø)
petab/models/sbml_model.py 96.36% <0.00%> (+1.81%) ⬆️
petab/sbml.py 68.14% <0.00%> (+2.65%) ⬆️
petab/lint.py 75.37% <0.00%> (+8.40%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

dweindl and others added 7 commits August 4, 2022 15:36
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
@dweindl dweindl merged commit 26c4010 into develop Aug 4, 2022
@dweindl dweindl deleted the simplify branch August 4, 2022 19:45
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.

4 participants