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
{{ message }}
Repository navigation
default grid creation makes grid wrong way round #921
If you log a 3D metric, and dont specify a grid first, the python API makes a default one. But this will be the wrong way round compared to the uploaded metric, and so the metric will always fail to be logged.
Also need to add tests to catch this in the future
Steps To Reproduce
Steps to reproduce the behavior:
run.log_metrics({"test": numpy.ones((20, 30))})
Expected behavior
Should upload, with the grid set to default between 0-1 on each axis.
Actual Behaviour
ValueError: Validation error for 'https://uk.simvue.io/api/runs/GfpnEhRapr3hL9adFH5iKv/metrics' [422]:
╒═════════╤════════════╤══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╕
│ Type │ Location │ Message │
╞═════════╪════════════╪══════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
│ Unknown │ N/A │ Expected shape '[20, 30]' when adding entry for metric to grid 'QpPBRjeHx6YEdmfqYyJCZx', but received '[30, 20]' │
Screenshots
If applicable, add screenshots to help explain your problem.
On hold until a convention is finalised, this is not a bug. The Python API follows Numpy ordering, whereas the server follows axis ordering, needs discussion
Activity
kzscisoft commentedon Feb 24, 2026
On hold until a convention is finalised, this is not a bug. The Python API follows Numpy ordering, whereas the server follows axis ordering, needs discussion