I was wondering if there is a way to send a SimpleTable (and co.) via ONELAB with a PostOperation? I tried a simple
Print[bPhiM, OnGrid ..., File ..., Format SimpleTable, SendToServer "Output/bPhiM"];
but it doesn't work... am I missing something?
If I'm not, I looked a bit in the code, and hacked
I basically changed
Tabular_PrintElement such that the table is printed in a string (in addition to the old
With this string, I can send the lines of the tables via
Message::AddOnelabStringChoice (by mimicking the case
PE->NbrNodes == 1 && PSO_P->Format != FORMAT_NODE_TABLE && PSO_P->Format != FORMAT_ELEMENT_TABLE).
In the end, I have a ONELAB string with different choices, each of them being a line of the table, and I can get it back in python via
We could also parse back the numbers in the string and send
onelab::number instead of
onelab::string, but I don't know if we can safely parse
%.16g in a systematic way?