@@ -456,8 +456,8 @@ def clip_limits(value) -> Tuple[float, float]:
456456
457457
458458def can_assign_to_typing (value_type , target_type ) -> bool :
459- """Check if value_type can be assigned to target_type. This is useful when converting Runner's
460- argument into strings .
459+ """Check if value_type can be assigned to target_type. argument into strings. This is useful
460+ when converting Runner's .
461461
462462 Args:
463463 value_type: type of the value, might be float, int, etc.
@@ -483,8 +483,8 @@ def add_i_batch(filename: str) -> str:
483483
484484
485485def search_filename_pattern (filename : str ) -> str :
486- """Return pattern for a given existing filename. This is needed because sometimes the filename
487- is not appended by "_{i_batch:d}". We need to distinguish between the two cases and return the
486+ """Return pattern for a given existing filename. is not appended by "_{i_batch:d}". We need to
487+ distinguish between the two cases and return the This is needed because sometimes the filename
488488 correct pattern.
489489
490490 Returns:
@@ -625,8 +625,8 @@ def convert_to_vary(to_vary: Dict[str, List]) -> List[Dict[str, Any]]:
625625
626626
627627def convert_to_in_common (in_common : Dict [str , Any ]) -> Dict [str , Any ]:
628- """Expand the values in in_common, according to the itertools.product method, if necessary. This
629- usually happens to the hypotheses.
628+ """Expand the values in in_common, according to the itertools.product method, if necessary.
629+ usually happens to the hypotheses. This.
630630
631631 Example:
632632 >>> convert_to_in_common({'hypotheses': ['free', {'a': [1, 2], 'b': [3, 4]}]})
@@ -653,9 +653,9 @@ def convert_to_in_common(in_common: Dict[str, Any]) -> Dict[str, Any]:
653653
654654
655655def compute_variations (to_zip , to_vary , in_common ) -> list :
656- """Compute variations of Runner from to_zip, to_vary and in_common. By priority, the order is
657- to_zip, to_vary, in_common. The values in to_zip will overwrite the keys in to_vary and
658- in_common. The values in to_vary will overwrite the keys in in_common.
656+ """Compute variations of Runner from to_zip, to_vary and in_common. to_zip, to_vary, in_common.
657+ The values in to_zip will overwrite the keys in to_vary and By priority, the order is in_common.
658+ The values in to_vary will overwrite the keys in in_common.
659659
660660 Args:
661661 to_zip (dict): variations to be zipped
@@ -728,8 +728,8 @@ def signal_multiplier_estimator(
728728 iteration = 100 ,
729729 diagnostic = False ,
730730) -> float :
731- """Estimate the best-fit signal multiplier using perturbation theory. The method tries to solve
732- the critial point of the likelihood function by perturbation theory, where the likelihood
731+ """Estimate the best-fit signal multiplier using perturbation theory. the critial point of the
732+ likelihood function by perturbation theory, where the likelihood The method tries to solve
733733 function is defined as the binned Poisson likelihood function, given signal, background models
734734 and data.
735735
0 commit comments