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

Enable passing the base path to Problem.from_yaml #327

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

dweindl
Copy link
Member

@dweindl dweindl commented Dec 3, 2024

When passing the problem configuration as dict to Problem.from_yaml, one should be able to specify the base path for resolving relative paths. See #324.

Closes #324

When passing the problem configuration as `dict` to
`Problem.from_yaml`, one should be able to specify
the base path for resolving relative paths. See PEtab-dev#324.

Closes PEtab-dev#324
@dweindl dweindl marked this pull request as ready for review December 3, 2024 20:56
@dweindl dweindl requested a review from a team as a code owner December 3, 2024 20:56
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.

👍

petab/v1/problem.py Show resolved Hide resolved
petab/v2/problem.py Show resolved Hide resolved
@dweindl dweindl merged commit 9a4efb4 into PEtab-dev:develop Dec 3, 2024
7 checks passed
@dweindl dweindl deleted the fromyaml_basepath branch December 3, 2024 21:27
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 62.50000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 74.92%. Comparing base (0b77d7f) to head (9ff065d).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
petab/v1/problem.py 57.14% 1 Missing and 2 partials ⚠️
petab/v2/problem.py 66.66% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #327      +/-   ##
===========================================
+ Coverage    72.79%   74.92%   +2.12%     
===========================================
  Files           52       52              
  Lines         4907     4913       +6     
  Branches       841      845       +4     
===========================================
+ Hits          3572     3681     +109     
+ Misses        1028      923     -105     
- Partials       307      309       +2     

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

@dweindl dweindl linked an issue Dec 4, 2024 that may be closed by this pull request
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.

Path management
3 participants