FS#69417 - [freecad] calculix writer uses time.clock()
Attached to Project:
Community Packages
Opened by Joseph Sisson (Wardstone) - Saturday, 23 January 2021, 16:39 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 03 May 2021, 12:39 GMT
Opened by Joseph Sisson (Wardstone) - Saturday, 23 January 2021, 16:39 GMT
Last edited by Alexander F. Rødseth (xyproto) - Monday, 03 May 2021, 12:39 GMT
|
Details
Description:
The calculix writer.py script is using the now removed time.clock() method which causes the FEM 'Write .inp file' to fail. The error can be fixed by changing time.clock() to time.time() in the /usr/lib/freecad/Mod/Fem/femsolver/calculix/writer.py script at lines 72 and 77. Steps to reproduce: Install calculix and gmesh from the AUR (in order to allow FEM to be run). Create any 3D object, create an Analysis in the FEM workbench and create a Gmsh. Then double click the CalculiXccxTools and click 'Write .inp file'. The Report view will say that time.clock() does not exist. |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Monday, 03 May 2021, 12:39 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in the latest version
Monday, 03 May 2021, 12:39 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in the latest version
[1] https://github.com/FreeCAD/FreeCAD/commit/60ca94d7c2ff070631189216d2991ea8d59f80c7
Thanks for reporting.
@loqs
Yes, this patch seems to be included in (at least) 0.19.2.
Your patches and suggestions are always helpful. Thank you.