When I use python to setting the phases calculation, I can't get feedback on the failure of the stage calculation directly from the python interface. The fails of calculation do not stop the batch. Therefore, when I batch calculate models, I cannot tell if any of them have failed to calculate. How could I konw that all the phases in a model have successed calculated? Is there a code command can help?
Dear Pan,
Every phase object has a .LogInfo property to query the details. For example:
echo Phase_7.LogInfo
Thanks a lot. However, this command does not seem to give a valid feedback in the juypter interface.
Helps a lot! I find that when the output is '2', it means that the calculation has failed.
It is valid, just not in the form you want it to be.
You can replace the code with:
print(i.LogInfo) # this will give you a code, 0 means OK (no error)
or
print(i.LogInfo.echo()) # this will give you the full response from PLAXIS in a string
Yes, that is indeed better! Great that you found that.
You can search for all properties in our Command reference > Input Objects reference > Phase