Skip to content

Commit

Permalink
Adding likelihood creation to tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitenti committed Jul 9, 2024
1 parent fd27ec9 commit 290d625
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tutorial/two_point_factories.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,15 @@ two_point_list = TwoPoint.from_metadata_only_real(
)
```

## Creating a `Likelihood` object

Now we can create a `Likelihood` object using the `TwoPoint` objects.
Since we are using the metadata only, we need to pass the `SACC` object to the `read` method.
```{python}
from firecrown.likelihood.gaussian import ConstGaussian
likelihood = ConstGaussian(two_point_list)
likelihood.read(sacc_data)
```

0 comments on commit 290d625

Please sign in to comment.