You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the feature request related to a problem? Please describe.
Currently, members of PixelIDValueEnum Enum are exported on the module level. Currently modern python packages export enum values as members of the class, not on the module level. So newcomers may be confused. It will be nice to also export PixelIDValueEnum members in SimpleITK.PixelIDValueEnum.member
Describe the proposed solution
Add something like
class PixelIDValueEnum(IntEnum):
sitkUInt8 = 1
...
Is the feature request related to a problem? Please describe.
Currently, members of
PixelIDValueEnum
Enum are exported on the module level. Currently modern python packages export enum values as members of the class, not on the module level. So newcomers may be confused. It will be nice to also exportPixelIDValueEnum
members inSimpleITK.PixelIDValueEnum.member
Describe the proposed solution
Add something like
Or even provide also numpy like aliases:
Additional context
#1991 (comment)
Maybe this change may be also nice in other languages, but I'm not enough familiar with their conventions.
The text was updated successfully, but these errors were encountered: