def conditional(self, event_spec): mass_fn = WeightedBox.conditional(self, event_spec).mass_function return conditional_switch(mass_fn)