Skip to content

Conversation

@jl-wynen
Copy link
Member

No description provided.

class Constituents(TypedDict):
"""A dict with bin constituents."""

data: Variable | DataArray
Copy link
Member

Choose a reason for hiding this comment

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

Could also be Dataset

begin: Variable
"""Begin indices for each bin."""
end: Variable
"""Begin indices for each bin."""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"""Begin indices for each bin."""
"""End indices for each bin."""

"""A dict with bin constituents."""

data: Variable | DataArray
"""Buffer with events."""
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"""Buffer with events."""
"""Data content"""

avoid "events", since that is Neutron terminology.

Comment on lines 237 to 247
DType.float64,
DType.float32,
DType.int64,
DType.int32,
DType.bool,
DType.datetime64,
DType.vector3,
DType.linear_transform3,
DType.rotation3,
DType.translation3,
DType.affine_transform3,
Copy link
Member

Choose a reason for hiding this comment

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

Same as in reader_lut above?



def make_random_color(fmt='rgb'):
def make_random_color(
Copy link
Member

Choose a reason for hiding this comment

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

Is this still used? Remnant from plotting in Scipp, pre-dating Plopp?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it isn't. I removed it now.

@jl-wynen jl-wynen enabled auto-merge June 12, 2024 11:47
@jl-wynen jl-wynen merged commit 78216da into main Jun 12, 2024
@jl-wynen jl-wynen deleted the appease-mypy branch June 12, 2024 12:16
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.

3 participants