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 pypesto.profile #1225

Merged
merged 11 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
autodoc_mock_imports = ["amici"]
autodoc_class_signature = "separated"

# napoleon options
napoleon_use_rtype = False

# links for intersphinx
intersphinx_mapping = {
Expand Down
3 changes: 1 addition & 2 deletions pypesto/profile/approximate.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def approximate_parameter_profile(

Returns
-------
result:
The profile results are filled into `result.profile_result`.
The profile results are filled into `result.profile_result`.
"""
# Handling defaults
# profiling indices
Expand Down
9 changes: 5 additions & 4 deletions pypesto/profile/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def parameter_profile(
overwrite: bool = False,
) -> Result:
"""
Call to do parameter profiling.
Compute parameter profiles.

Parameters
----------
Expand All @@ -45,6 +45,7 @@ def parameter_profile(
The optimizer to be used along each profile.
engine:
The engine to be used.
Defaults to :class:`pypesto.engine.SingleCoreEngine`.
profile_index:
List with the parameter indices to be profiled
(by default all free indices).
Expand All @@ -61,12 +62,13 @@ def parameter_profile(
:func:`pypesto.profile.profile_next_guess.next_guess`.
profile_options:
Various options applied to the profile optimization.
See :class:`pypesto.profile.options.ProfileOptions`.
progress_bar:
Whether to display a progress bar.
filename:
Name of the hdf5 file, where the result will be saved. Default is
None, which deactivates automatic saving. If set to
"Auto" it will automatically generate a file named
``Auto`` it will automatically generate a file named
``year_month_day_profiling_result.hdf5``.
Optionally a method, see docs for :func:`pypesto.store.auto.autosave`.
overwrite:
Expand All @@ -75,8 +77,7 @@ def parameter_profile(

Returns
-------
result:
The profile results are filled into `result.profile_result`.
The profile results are filled into `result.profile_result`.
"""
# Copy the problem to avoid side effects
problem = copy.deepcopy(problem)
Expand Down
Loading