-
Notifications
You must be signed in to change notification settings - Fork 21
Appease mypy some more #3474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appease mypy some more #3474
Conversation
src/scipp/core/bins.py
Outdated
| class Constituents(TypedDict): | ||
| """A dict with bin constituents.""" | ||
|
|
||
| data: Variable | DataArray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also be Dataset
src/scipp/core/bins.py
Outdated
| begin: Variable | ||
| """Begin indices for each bin.""" | ||
| end: Variable | ||
| """Begin indices for each bin.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """Begin indices for each bin.""" | |
| """End indices for each bin.""" |
src/scipp/core/bins.py
Outdated
| """A dict with bin constituents.""" | ||
|
|
||
| data: Variable | DataArray | ||
| """Buffer with events.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """Buffer with events.""" | |
| """Data content""" |
avoid "events", since that is Neutron terminology.
src/scipp/io/hdf5.py
Outdated
| DType.float64, | ||
| DType.float32, | ||
| DType.int64, | ||
| DType.int32, | ||
| DType.bool, | ||
| DType.datetime64, | ||
| DType.vector3, | ||
| DType.linear_transform3, | ||
| DType.rotation3, | ||
| DType.translation3, | ||
| DType.affine_transform3, |
There was a problem hiding this comment.
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?
src/scipp/visualization/colors.py
Outdated
|
|
||
|
|
||
| def make_random_color(fmt='rgb'): | ||
| def make_random_color( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.