Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Feb 9, 2026

Fixes #240

@jokasimr jokasimr requested a review from jl-wynen February 9, 2026 10:51

def load_beer_mcstas(f: str | Path | h5py.File, bank: int) -> sc.DataArray:
def load_beer_mcstas(
f: str | Path | h5py.File, bank: Literal['north', 'south'] | int
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does it mean when bank is an int? It looks to me like it would only load a detector slice, not a full bank.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Changed it to only take north or south.

@jokasimr jokasimr merged commit a992458 into main Feb 9, 2026
4 checks passed
@jokasimr jokasimr deleted the beer-3d branch February 9, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Requirement] BEER: loader to support 3D detector geometry

2 participants