Skip to content

Commit

Permalink
- document new flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Feb 16, 2023
1 parent 89e362e commit a9e1af8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions basico/task_parameterestimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,12 +1628,18 @@ def get_experiment_dict(experiment, **kwargs):
- | `model`: to specify the data model to be used (if not specified
| the one from :func:`.get_current_model` will be taken)
- | `raise_error`: boolean indicating that an error should be raised if the
| experimentfile is not present (default: False)
- | `return_relative`: to indicate that relative experiment filenames should
| be returned (default: True)
:return: all information about the experiment as dictionary
"""
experiment = get_experiment(experiment, **kwargs)

kwargs['raise_error'] = False
kwargs['return_relative'] = True
kwargs['raise_error'] = kwargs.get('raise_error', False)
kwargs['return_relative'] = kwargs.get('return_relative', True)
filename = _get_experiment_file(experiment, **kwargs)

result = {
Expand Down Expand Up @@ -1681,6 +1687,12 @@ def save_experiments_to_dict(**kwargs):
- | `model`: to specify the data model to be used (if not specified
| the one from :func:`.get_current_model` will be taken)
- | `raise_error`: boolean indicating that an error should be raised if the
| experimentfile is not present (default: False)
- | `return_relative`: to indicate that relative experiment filenames should
| be returned (default: True)
:return: the parameter estimation experimetns as list of dictionary
:rtype: [{}]
"""
Expand Down

0 comments on commit a9e1af8

Please sign in to comment.