Conversation
ZackAttack614
left a comment
There was a problem hiding this comment.
This is definitely better! I'll propose that we add in typing for the elements of numpy arrays, as well. We've done that in most places, e.g. here. That allows us to statically analyze the script and know whether the data type is an int, float64, bool, or str - all of which are matrix element types we've worked with in the HEXRD ecosystem.
|
So, in your file, what is the difference between |
|
So, technically, it looks like it's wrong to use numpy datatypes for regular floats and ints. |
|
OH, I see. It's a typedict. I thought they were type hints. |
|
OK, I added the numpy scalar types and pushed everything up. Should be good now. |
Overview
See #908, unintentionally closed. This cleans up documentation and typing in indexer.py. The latest changes the
ParamMPvariable to a TypedDict.