Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Performing a Combination

We’ll demonstrate how a combination works by combining everything we’ve learned so far.

Loading the Workspace

To do so, we’ll use a simple workspace to demonstrate functionality of combinations.

Combine Workspaces

Let’s just try to combine naively right now.

As we can see, we can’t just combine a workspace with itself if it has some channel names in common. We try very hard in pyhf to make sure a combination “makes sense”.

Let’s go ahead and rename the channel (as well as the measurement). Then try to combine.

And did we combine?

Indeed. And at this point, we can just use all the same functionality we expect of pyhf, such as performing a fit: