@@ -48,7 +48,8 @@ def get_optimization_to_simulation_parameter_mapping(
4848 Create list of mapping dicts from PEtab-problem to SBML parameters.
4949
5050 Mapping can be performed in parallel. The number of threads is controlled
51- by the environment variable with the name of petab.ENV_NUM_THREADS.
51+ by the environment variable with the name of
52+ :py:data:`petab.ENV_NUM_THREADS`.
5253
5354 Parameters:
5455 condition_df, measurement_df, parameter_df, observable_df:
@@ -78,9 +79,9 @@ def get_optimization_to_simulation_parameter_mapping(
7879 Parameter value and parameter scale mapping for all conditions.
7980
8081 The length of the returned array is the number of unique combinations
81- of ``simulationConditionId``s and ``preequilibrationConditionId``s from
82- the measurement table. Each entry is a tuple of four dicts of length
83- equal to the number of model parameters.
82+ of ``simulationConditionId`` s and ``preequilibrationConditionId`` s
83+ from the measurement table. Each entry is a tuple of four dicts of
84+ length equal to the number of model parameters.
8485 The first two dicts map simulation parameter IDs to optimization
8586 parameter IDs or values (where values are fixed) for preequilibration
8687 and simulation condition, respectively.
@@ -160,7 +161,9 @@ def _map_condition_arg_packer(
160161def _map_condition (packed_args ):
161162 """Helper function for parallel condition mapping.
162163
163- For arguments see get_optimization_to_simulation_parameter_mapping"""
164+ For arguments see
165+ :py:func:`get_optimization_to_simulation_parameter_mapping`.
166+ """
164167
165168 (condition , measurement_df , condition_df , parameter_df , sbml_model ,
166169 simulation_parameters , warn_unmapped , scaled_parameters ,
@@ -264,7 +267,7 @@ def get_parameter_mapping_for_condition(
264267 to mapped parameters IDs to be estimated or to filled-in values in case
265268 of non-estimated parameters.
266269 Second dictionary mapping model parameter IDs to their scale.
267- NaN is used where no mapping exists.
270+ `` NaN`` is used where no mapping exists.
268271 """
269272 _perform_mapping_checks (
270273 cur_measurement_df ,
@@ -323,7 +326,7 @@ def _apply_output_parameter_overrides(
323326
324327 Arguments:
325328 mapping: parameter mapping dict as obtained from
326- `` get_parameter_mapping_for_condition``
329+ :py:func:` get_parameter_mapping_for_condition`.
327330 cur_measurement_df:
328331 Subset of the measurement table for the current condition
329332 """
@@ -376,7 +379,7 @@ def _apply_condition_parameters(par_mapping: ParMappingDict,
376379 table parameter values (in-place).
377380
378381 Arguments:
379- par_mapping: see get_parameter_mapping_for_condition
382+ par_mapping: see :py:func:` get_parameter_mapping_for_condition`
380383 condition_id: ID of condition to work on
381384 condition_df: PEtab condition table
382385 """
@@ -410,7 +413,8 @@ def _apply_parameter_table(par_mapping: ParMappingDict,
410413
411414 Arguments:
412415 par_mapping:
413- mapping dict obtained from ``get_parameter_mapping_for_condition``
416+ mapping dict obtained from
417+ :py:func:`get_parameter_mapping_for_condition`
414418 parameter_df:
415419 PEtab parameter table
416420 """
@@ -495,7 +499,7 @@ def handle_missing_overrides(mapping_par_opt_to_par_sim: ParMappingDict,
495499
496500 Parameters:
497501 mapping_par_opt_to_par_sim:
498- Output of get_parameter_mapping_for_condition
502+ Output of :py:func:` get_parameter_mapping_for_condition`
499503 warn:
500504 If True, log warning regarding unmapped parameters
501505 condition_id:
@@ -538,10 +542,10 @@ def merge_preeq_and_sim_pars_condition(
538542 Arguments:
539543 condition_map_preeq, condition_map_sim:
540544 Parameter mapping as obtained from
541- `get_parameter_mapping_for_condition`
545+ :py:func: `get_parameter_mapping_for_condition`
542546 condition_scale_map_preeq, condition_scale_map_sim:
543547 Parameter scale mapping as obtained from
544- `get_get_scale_mapping_for_condition `
548+ :py:func:`get_parameter_mapping_for_condition `
545549 condition: Condition identifier for more informative error messages
546550 """
547551 if not condition_map_preeq :
@@ -610,9 +614,10 @@ def merge_preeq_and_sim_pars(
610614 Parameters:
611615 parameter_mappings:
612616 As returned by
613- petab.get_optimization_to_simulation_parameter_mapping
617+ :py:func:` petab.get_optimization_to_simulation_parameter_mapping`.
614618 scale_mappings:
615- As returned by petab.get_optimization_to_simulation_scale_mapping.
619+ As returned by
620+ :py:func:`petab.get_optimization_to_simulation_parameter_mapping`.
616621
617622 Returns:
618623 The parameter and scale simulation mappings, modified and checked.
0 commit comments