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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by loqs (loqs) - Sunday, 24 January 2021, 04:09 GMT Comment by Alexander F. Rødseth (xyproto) - Monday, 03 May 2021, 12:39 GMT
@Wardstone

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.

Loading...