combine_spaces#
- zfit.dimension.combine_spaces(*spaces)[source]#
Combine spaces with different
obsandlimitsto onespace.Checks if the limits in each obs coincide exactly. If this is not the case, the combination is not unambiguous and
Falseis returned- Parameters:
- Returns:
- Returns False if the limits don’t coincide in one or more obs. Otherwise
return the
Spacewith all obs fromspacessorted by the order ofspacesand with the combined limits.
- Raises:
ValueError – if only one space is given
LimitsIncompatibleError – If the limits of one or more spaces (or within a space) overlap
LimitsNotSpecifiedError – If the limits for one or more obs but not all are None or False.