zfit.dimension.
combine_spaces
Combine spaces with different obs and limits to one space.
Checks if the limits in each obs coincide exactly. If this is not the case, the combination is not unambiguous and False is returned
spaces (Iterable[Space]) –
Iterable
Space
return the Space with all obs from spaces sorted by the order of spaces and with the combined limits.
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.