umvarma / pynastran

Automatically exported from code.google.com/p/pynastran
1 stars 0 forks source link

bdf test failures #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
python all_tests.py in pynastran-read-only/pyNastran/bdf/test
using r2297

======================================================================
ERROR: test_mass_shell_1 (pyNastran.bdf.test.unit.test_mass.TestMass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/unit/test_mass.py", line 79, in test_mass_shell_1
    self.verify_pcomp_element(quad, mass, area, centroid, normal)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/unit/test_mass.py", line 17, in verify_pcomp_element
    self.assertAlmostEqual(element.Mass(), mass, msg='mass=%s expected=%s' % (element.Mass(), mass))
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/cards/elements/shell.py", line 133, in Mass
    return self.pid.MassPerArea() * self.Area()
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

======================================================================
ERROR: test_PCOMP_01 (pyNastran.bdf.test.cards.test_shells.TestShells)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_shells.py", line 236, in test_PCOMP_01
    self.assertAlmostEqual(p.Theta(0), 0.)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/cards/properties/shell.py", line 50, in Theta
    return self.get_theta()
TypeError: get_theta() takes exactly 2 arguments (1 given)

======================================================================
ERROR: test_PCOMP_02 (pyNastran.bdf.test.cards.test_shells.TestShells)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_shells.py", line 365, in test_PCOMP_02
    self.assertAlmostEqual(p.Theta(0), 0.)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/cards/properties/shell.py", line 50, in Theta
    return self.get_theta()
TypeError: get_theta() takes exactly 2 arguments (1 given)

======================================================================
ERROR: test_PSHELL_01 (pyNastran.bdf.test.cards.test_shells.TestShells)
tests a CQUAD4 and a PSHELL
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_shells.py", line 184, in test_PSHELL_01
    self._make_ctria3(model, rho, nu, G, E, t, nsm)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_shells.py", line 117, in _make_ctria3
    self.assertAlmostEquals(ctria3.Mass(), mass)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/cards/elements/shell.py", line 133, in Mass
    return self.pid.MassPerArea() * self.Area()
TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'

======================================================================
FAIL: test_pbar_01 (pyNastran.bdf.test.cards.test_bars.TestBars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_bars.py", line 21, in test_pbar_01
    pbar = PBAR(card2)
AssertionError: AssertionError not raised

======================================================================
FAIL: test_pbar_02 (pyNastran.bdf.test.cards.test_bars.TestBars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_bars.py", line 57, in test_pbar_02
    self.assertEqual(pbar.K1, 1e8)
AssertionError: None != 100000000.0

======================================================================
FAIL: test_include_end (pyNastran.bdf.test.unit.test_read_write.TestReadWrite)
this test fails
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/unit/test_read_write.py", line 128, in test_include_end
    self.assertEquals(len(model.nodes), 3)
AssertionError: 2 != 3

----------------------------------------------------------------------
Ran 134 tests in 14.424s

FAILED (failures=3, errors=6)

Original issue reported on code.google.com by nils...@googlemail.com on 12 Oct 2014 at 8:51

GoogleCodeExporter commented 9 years ago
All shell tests have been fixed

I need to look into this, but my thought is I fixed a bug recently in it, so 
this no longer errors
======================================================================
FAIL: test_pbar_01 (pyNastran.bdf.test.cards.test_bars.TestBars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_bars.py", line 21, in test_pbar_01
    pbar = PBAR(card2)
AssertionError: AssertionError not raised

The behavior of
======================================================================
FAIL: test_pbar_02 (pyNastran.bdf.test.cards.test_bars.TestBars)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/cards/test_bars.py", line 57, in test_pbar_02
    self.assertEqual(pbar.K1, 1e8)
AssertionError: None != 100000000.0

has been changed to be more consistent with the QRG and the test is out of date.

======================================================================
FAIL: test_include_end (pyNastran.bdf.test.unit.test_read_write.TestReadWrite)
this test fails
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/unit/test_read_write.py", line 128, in test_include_end
    self.assertEquals(len(model.nodes), 3)
AssertionError: 2 != 3

is known to fail per the description and is documented in #159

Original comment by mesheb82 on 12 Oct 2014 at 10:36

GoogleCodeExporter commented 9 years ago
======================================================================
ERROR: test_loads_sum_05 (pyNastran.bdf.test.unit.test_sum_loads.TestLoadSum)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/unit/test_sum_loads.py", line 201, in test_loads_sum_05
    F, M = model.sum_forces_moments(p0, loadcase_id, include_grav=False)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/bdf_Methods.py", line 816, in sum_forces_moments
    loadCase = self.loads[loadcase_id]
KeyError: 6

======================================================================
ERROR: test_loads_sum_06 (pyNastran.bdf.test.unit.test_sum_loads.TestLoadSum)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/test/unit/test_sum_loads.py", line 265, in test_loads_sum_06
    model.read_bdf(bdf_filename)
  File "/home/nils/svn/pynastran-read-only/pyNastran/bdf/bdf.py", line 752, in read_bdf
    raise IOError(msg)
IOError: cannot find 
bdf_filename='/home/nils/svn/pynastran-read-only/pyNastran/../models/real/loads/
bars.bdf'
failed: /home/nils/svn/pynastran-read-only/models/real/loads/bars.bdf
passed: /home/nils/svn/pynastran-read-only/models/real/loads
passed: /home/nils/svn/pynastran-read-only/models/real
passed: /home/nils/svn/pynastran-read-only/models
passed: /home/nils/svn/pynastran-read-only
passed: /home/nils/svn
passed: /home/nils
passed: /home
passed: /

----------------------------------------------------------------------
Ran 134 tests in 9.647s

FAILED (errors=2)

Original comment by nils...@googlemail.com on 5 Dec 2014 at 9:50

GoogleCodeExporter commented 9 years ago
moved to github

Original comment by mesheb82 on 14 Mar 2015 at 8:13

GoogleCodeExporter commented 9 years ago

Original comment by mesheb82 on 8 Apr 2015 at 6:34