← Back to team overview

yade-dev team mailing list archive

Re: [yade/trunk] 059fb4: fix inertia calculation and clump test

 

I ran yade --test at my machine: everything fine!

Also I checked the source code [1], [2] and it is ok. Are you sure, that this test [3] is from actual commit?


[1] https://github.com/yade/trunk/blob/master/core/Clump.cpp#L189
[2] https://github.com/yade/trunk/blob/master/core/Clump.cpp#L196
[3] https://yade-dem.org/buildbot/builders/yade-clang/builds/125/steps/test/logs

Zitat von Anton Gladky <gladky.anton@xxxxxxxxx>:

Christian, it seems some tests are still failing on build-servers.
================
ERROR: testStaticProperties (yade.TestSimpleClump)
Clump: mass, centroid, intertia
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/yade/yade-clang/install/lib/x86_64-linux-gnu/yade-buildbot/py/yade/tests/clump.py",
line 46, in testStaticProperties
    self.assertAlmostEqual(bC.state.pos,c);
  File "/usr/lib/python2.7/unittest/case.py", line 557, in assertAlmostEqual
    if round(abs(second-first), places) == 0:
TypeError: bad operand type for abs(): 'Vector3'

========================
[1] https://yade-dem.org/buildbot/builders/yade-clang/builds/125/steps/test/logs/stdio

Anton

Anton


2013/7/5 Christian Jakob <jakob@xxxxxxxxxxxxxxxxxxx>:
anton, is it fine now?

Zitat von Christian Jakob <jakob@xxxxxxxxxxxxxxxxxxx>:


  Branch: refs/heads/master
  Home:   https://github.com/yade/trunk
  Commit: 059fb4883ab5dd4a7e7767702759ec8ebbed1365

https://github.com/yade/trunk/commit/059fb4883ab5dd4a7e7767702759ec8ebbed1365
  Author: Christian Jakob <jakob@xxxxxxxxxxxxxxxxxxx>
  Date:   2013-07-05 (Fri, 05 Jul 2013)

  Changed paths:
    M core/Clump.cpp
    M py/tests/clump.py

  Log Message:
  -----------
  fix inertia calculation and clump test








_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp






Follow ups

References