Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a7855df
feat: initial beer mcstas workflow
jokasimr Jun 24, 2025
b52260a
fix: add data
jokasimr Jun 24, 2025
ef5802a
docs: fix name
jokasimr Jun 24, 2025
5a19e76
refactor: remove unnecessary coordinates and coord transformations
jokasimr Jun 25, 2025
8331450
refactor: make clustering step configurable + separate tof code from …
jokasimr Jun 25, 2025
c82445e
docs: add header and 2D figure illustrating the intensity
jokasimr Jun 25, 2025
7493134
docs: add ground truth peak positions to notebook
jokasimr Jul 2, 2025
ebd10d5
fix: coordinate tranformations
jokasimr Jul 2, 2025
4db8df7
feat: mask regions where streaks are too close
jokasimr Jul 2, 2025
a83254b
feat: add workflow for BEER frame unwrapping when peak positions are …
jokasimr Jul 7, 2025
4ca9204
ci: add example data from different chopper settings
jokasimr Jul 7, 2025
b427c3b
docs: update notebook with new files
jokasimr Jul 7, 2025
695355f
Merge branch 'main' into beer
jokasimr Jul 8, 2025
bf88dbf
feat: read both banks
jokasimr Jul 8, 2025
5929740
docs: update to display both banks
jokasimr Jul 8, 2025
a7ad9b0
Merge branch 'beer' of github.com:scipp/essdiffraction into beer
jokasimr Jul 8, 2025
074b90c
fix: remove peak list from default parameters
jokasimr Jul 9, 2025
54c5472
fix: remove dspacing coord from DetectorTofData
jokasimr Jul 9, 2025
b3d1bfe
fix: simplify fit to streaks
jokasimr Jul 9, 2025
760628f
docs: type annotations
jokasimr Jul 9, 2025
81b7f8f
feat: make two theta mask user configurable
jokasimr Jul 9, 2025
9eb489f
fix
jokasimr Jul 9, 2025
460103e
typo
jokasimr Jul 9, 2025
103acdd
tests: can apply workflows and get sensible result
jokasimr Jul 9, 2025
49ec31a
test: relax tolerance
jokasimr Jul 9, 2025
038d80d
docs: compare to true peak positions for both workflows
jokasimr Jul 9, 2025
639d6ad
Merge branch 'main' into beer
jokasimr Jul 14, 2025
eaf582a
fix: remove unused coordinates
jokasimr Jul 15, 2025
266c4fb
Merge branch 'beer' of github.com:scipp/essdiffraction into beer
jokasimr Jul 15, 2025
13976b8
fix: move approximate t0 to clustering routine where it is used
jokasimr Jul 15, 2025
f812316
docs: update si example file
jokasimr Jul 18, 2025
f44f0eb
fix: don't read data several times
jokasimr Jul 24, 2025
eb92d7f
docs: add tof-diagram notebook
jokasimr Jul 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
486 changes: 486 additions & 0 deletions docs/user-guide/beer/beer_mcstas.ipynb

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions docs/user-guide/beer/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# BEER

## Reduction Workflows

```{toctree}
---
maxdepth: 1
---
beer_mcstas
```
724 changes: 724 additions & 0 deletions docs/user-guide/beer/tof_diagrams.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ maxdepth: 1

installation
dream/index
beer/index
sns-instruments/index
common/index
```
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ pydocstyle.convention = "numpy"
"S101", # asserts are used for demonstration and are safe in notebooks
"T201", # printing is ok for demonstration purposes
]
"docs/user-guide/beer/tof_diagrams.ipynb" = [
"PGH004", # file contains too many issues - allow blanket ignore
]

[tool.ruff.format]
quote-style = "preserve"
Expand Down
30 changes: 30 additions & 0 deletions src/ess/beer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2025 Scipp contributors (https://github.com/scipp)

"""
Components for BEER
"""

import importlib.metadata

from .io import load_beer_mcstas
from .workflow import (
BeerMcStasWorkflow,
BeerMcStasWorkflowKnownPeaks,
default_parameters,
)

try:
__version__ = importlib.metadata.version("essdiffraction")
except importlib.metadata.PackageNotFoundError:
__version__ = "0.0.0"

del importlib

__all__ = [
'BeerMcStasWorkflow',
'BeerMcStasWorkflowKnownPeaks',
'__version__',
'default_parameters',
'load_beer_mcstas',
]
Loading
Loading