Skip to content

Commit

Permalink
Added tutorials to quarto project.
Browse files Browse the repository at this point in the history
Using catch_warnings in a way compatible with 3.10.
  • Loading branch information
vitenti committed May 10, 2024
1 parent 28e8c8c commit 87b5c8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firecrown/likelihood/gauss_family/statistic/two_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ def from_metadata_cells(
]

for two_point in two_point_list:
with warnings.catch_warnings(action="ignore"):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
two_point.read(sacc_data)

Check warning on line 437 in firecrown/likelihood/gauss_family/statistic/two_point.py

View check run for this annotation

Codecov / codecov/patch

firecrown/likelihood/gauss_family/statistic/two_point.py#L434-L437

Added lines #L434 - L437 were not covered by tests

return UpdatableCollection(two_point_list)

Check warning on line 439 in firecrown/likelihood/gauss_family/statistic/two_point.py

View check run for this annotation

Codecov / codecov/patch

firecrown/likelihood/gauss_family/statistic/two_point.py#L439

Added line #L439 was not covered by tests
Expand Down
6 changes: 6 additions & 0 deletions tutorial/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ project:
- intro_article.qmd
- development_example.qmd
- theoretical_predictions_tutorial.qmd
- inferred_zdist_generators.qmd
- two_point_generators.qmd

website:
title: "Firecrown Tutorial Documents"
Expand All @@ -27,6 +29,10 @@ website:
contents:
- href: theoretical_predictions_tutorial.qmd
text: "Theoretical Predictions Tutorial"
- href: inferred_zdist_generators.qmd
text: "Redshift Distribution Generators"
- href: two_point_generators.qmd
text: "Two-Point Function Generators"
- section: "Firecrown on GitHub"
contents:
- text: "Source Code"
Expand Down

0 comments on commit 87b5c8e

Please sign in to comment.