I have a Python script that calculates a few, quite small, NumPy arrays and I have a Java service on a separate machine that needs to use these arrays.
These arrays sometimes need to be recalculated and then used afterwards by the Java service. What is the best way to dump a NumPy array to the disk and load it in Java as float[][]?
I know that I could use JSON to do this (Python script dumps the NumPy array to a JSON file and Java service recovers float[][] from this), but is there any other, "preferred" way?