Python: grid_spacing & time_offset double#1290
Conversation
In `pybind11`, overloads on types are order-dependent (first wins). pybind/pybind11#1512 We specialize `double` here generically and cast in read if needed (see openPMD#345 openPMD#1137). Later on, we could add support for 1D numpy arrays with distinct type.
|
Is there a reason not to specify |
|
So in Python there is only a dynamic-bitness builtin float type. We could use I think the most general thing that we could do for the getter:
For now, this feels like a bit too detailed since there is most likely a conversation when going to Python builtin float anyways. |
|
With the current status of this PR, I think the following situation might happen: Your point of cross-platform consistency is valid, so I think we can go forward with this PR. We should just maybe be aware that this leaves stored |
|
Yes, that's the problem we need to generalize 👍 |
In
pybind11, overloads on types are order-dependent (first wins).pybind/pybind11#1512
We specialize
doublehere generically and cast in read if needed (see #345 #1137).Later on, we could add support for 1D numpy arrays with distinct type.