Skip to content

Commit

Permalink
remove prettier as it does not harmonize with some myst syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Apr 25, 2024
1 parent 1118558 commit 09af531
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.3"
hooks:
Expand Down
36 changes: 24 additions & 12 deletions docs/evermore_for_ATLAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ In the following, you will find a brief comparison how modifier types of
This is a simple example of a signal process scaled by an unconstrained modifier
{math}`\mu` and a background process with a normalization uncertainty (normsys).

::::{tab-set} :::{tab-item} pyhf
::::{tab-set}
:::{tab-item} pyhf

```python
import pyhf
Expand Down Expand Up @@ -84,7 +85,8 @@ model({"mu": evm.Parameter(value=0.5), "bkg_norm": evm.NormalParameter(value=1.1
# -> Array([61.63265822, 63.35796454], dtype=float64)
```

::: ::::
:::
::::

## Modifier types

Expand All @@ -97,7 +99,8 @@ the
See
[shapesys](https://pyhf.readthedocs.io/en/stable/likelihood.html#uncorrelated-shape-shapesys).

::::{tab-set} :::{tab-item} pyhf
::::{tab-set}
:::{tab-item} pyhf

```json
{
Expand Down Expand Up @@ -126,14 +129,16 @@ modifier = evm.Modifier(
)
```

::: ::::
:::
::::

### Correlated Shape (histosys)

See
[histosys](https://pyhf.readthedocs.io/en/stable/likelihood.html#correlated-shape-histosys).

::::{tab-set} :::{tab-item} pyhf
::::{tab-set}
:::{tab-item} pyhf

```json
{
Expand Down Expand Up @@ -169,7 +174,8 @@ modifier = param.morphing(
)
```

::: ::::
:::
::::

(sec-normsys)=

Expand All @@ -178,7 +184,8 @@ modifier = param.morphing(
See
[normsys](https://pyhf.readthedocs.io/en/stable/likelihood.html#normalisation-uncertainty-normsys).

::::{tab-set} :::{tab-item} pyhf
::::{tab-set}
:::{tab-item} pyhf

```json
{
Expand Down Expand Up @@ -208,14 +215,16 @@ modifier = evm.Modifier(
modifier = param.scale_log(up=1.1, down=0.9)
```

::: ::::
:::
::::

### MC Statistical Uncertainty (staterror)

See
[staterror](https://pyhf.readthedocs.io/en/stable/likelihood.html#mc-statistical-uncertainty-staterror).

::::{tab-set} :::{tab-item} pyhf
::::{tab-set}
:::{tab-item} pyhf

```json
{
Expand Down Expand Up @@ -249,7 +258,8 @@ modifier = evm.Modifier(
modifier = param.scale(offset=1, slope=rel_unc)
```

::: ::::
:::
::::

### Luminosity (lumi)

Expand Down Expand Up @@ -294,7 +304,8 @@ modifier = evm.Modifier(
modifier = param.scale()
```

::: ::::
:::
::::

# Data-driven Shape (shapefactor)

Expand Down Expand Up @@ -335,4 +346,5 @@ modifier = evm.Modifier(
modifier = param.scale()
```

::: ::::
:::
::::

0 comments on commit 09af531

Please sign in to comment.