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

Updated Docstring engine #1229

Merged
merged 5 commits into from
Dec 1, 2023
Merged

Updated Docstring engine #1229

merged 5 commits into from
Dec 1, 2023

Conversation

PaulJonasJost
Copy link
Collaborator

@PaulJonasJost PaulJonasJost commented Dec 1, 2023

Updated the doctoring of the engine module.

@codecov-commenter
Copy link

codecov-commenter commented Dec 1, 2023

Codecov Report

Attention: 396 lines in your changes are missing coverage. Please review.

Comparison is base (160c2a8) 88.16% compared to head (583d4e4) 84.11%.
Report is 456 commits behind head on develop.

Files Patch % Lines
pypesto/ensemble/ensemble.py 69.36% 68 Missing ⚠️
...ypesto/hierarchical/spline_approximation/solver.py 83.68% 47 Missing ⚠️
pypesto/ensemble/util.py 65.13% 38 Missing ⚠️
pypesto/hierarchical/optimal_scaling/solver.py 93.53% 26 Missing ⚠️
pypesto/history/base.py 88.57% 24 Missing ⚠️
pypesto/hierarchical/petab.py 84.56% 23 Missing ⚠️
pypesto/engine/mpi_pool.py 0.00% 22 Missing ⚠️
pypesto/hierarchical/inner_calculator_collector.py 89.04% 16 Missing ⚠️
...pesto/hierarchical/spline_approximation/problem.py 89.18% 16 Missing ⚠️
pypesto/hierarchical/optimal_scaling/calculator.py 75.86% 14 Missing ⚠️
... and 19 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1229      +/-   ##
===========================================
- Coverage    88.16%   84.11%   -4.06%     
===========================================
  Files           79      148      +69     
  Lines         5257    11863    +6606     
===========================================
+ Hits          4635     9978    +5343     
- Misses         622     1885    +1263     

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

Copy link
Member

@dweindl dweindl left a comment

Choose a reason for hiding this comment

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

👍

pypesto/engine/multi_thread.py Outdated Show resolved Hide resolved
pypesto/engine/multi_thread.py Outdated Show resolved Hide resolved
pypesto/engine/single_core.py Outdated Show resolved Hide resolved
@@ -8,7 +8,7 @@ class Task(abc.ABC):
Abstract Task class.

A task is one of a list of independent execution tasks that are
submitted to the execution engine to be executed using the execute()
submitted to the execution engine to be executed using the :func:`execute`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
submitted to the execution engine to be executed using the :func:`execute`
submitted to the execution engine to be executed using the :meth:`execute`

Maybe func works as well.

PaulJonasJost and others added 2 commits December 1, 2023 11:52
Co-authored-by: Daniel Weindl <dweindl@users.noreply.github.com>
Copy link
Contributor

@Doresic Doresic left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! The comment I left was just for my info and learning, never knew the difference :D

self, tasks: List[Task], progress_bar: bool = True
) -> List[Any]:
self, tasks: list[Task], progress_bar: bool = True
) -> list[Any]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any difference in using list or List?

Copy link
Member

Choose a reason for hiding this comment

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

Same effect, but List and the like are deprecated as of python3.9 (https://docs.python.org/3/library/typing.html#deprecated-aliases)

@PaulJonasJost PaulJonasJost merged commit 5a56717 into develop Dec 1, 2023
18 checks passed
@PaulJonasJost PaulJonasJost deleted the docstring_engine branch December 1, 2023 16:38
This was referenced Dec 5, 2023
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