umvarma / pynastran

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

Test failures in bdf_unit_tests.py #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ERROR: test_bdf_05 (__main__.TestBDF)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "bdf_unit_tests.py", line 124, in test_bdf_05
    self.run_bdf(folder, bdfFilename)
  File "bdf_unit_tests.py", line 25, in run_bdf
    meshForm=meshForm, dynamic_vars=dynamic_vars, debug=debug)
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/test/test_bdf.py", line 114, in run_bdf
    (outModel) = run_fem1(fem1, bdfModel, meshForm, xref, punch, cid)
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/test/test_bdf.py", line 148, in run_fem1
    fem1.read_bdf(bdfModel, xref=xref, punch=punch)
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/bdf.py", line 755, in read_bdf
    self._read_bulk_data_deck()
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/bdf.py", line 1203, in _read_bulk_data_deck
    self.add_card(lines, card_name, comment, is_list=False)
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/bdf.py", line 1535, in add_card
    prop = PBEAML(card_obj, comment=comment)
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/cards/properties/bars.py", line 1892, in __init__
    dimAll = fields(double, card, 'dim', i=9, j=len(card))
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/bdfInterface/assign_type.py", line 147, in fields
    fs.append( f(card, ii, fieldname) )
  File "/home/nils/svn/branches/v0.6/pyNastran/bdf/bdfInterface/assign_type.py", line 243, in double
    raise SyntaxError('%s = %r (field #%s) on card must be a float (not %s).\ncard=%s' % (fieldname, svalue, n, Type, card) )
SyntaxError: dim = None (field #11) on card must be a float (not blank).
card=[u'pbeaml', u'1', u'1', None, u'bar', None, None, None, None, u'8.', 
u'2.5', None, u'no', u'1.0', u'6.', u'2.0']

======================================================================
FAIL: test_bdf_01 (__main__.TestBDF)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "bdf_unit_tests.py", line 53, in test_bdf_01
    self._compare_mass_cg_I(fem1)
  File "bdf_unit_tests.py", line 62, in _compare_mass_cg_I
    assert mass1 == mass2, 'mass1=%s mass2=%s' % (mass1, mass2)
AssertionError: mass1=6.0 mass2=6.0

======================================================================
FAIL: test_bdf_02 (__main__.TestBDF)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "bdf_unit_tests.py", line 80, in test_bdf_02
    self._compare_mass_cg_I(fem1)
  File "bdf_unit_tests.py", line 62, in _compare_mass_cg_I
    assert mass1 == mass2, 'mass1=%s mass2=%s' % (mass1, mass2)
AssertionError: mass1=0.0001832875 mass2=0.0001832875

----------------------------------------------------------------------
Ran 7 tests in 4.307s

FAILED (failures=2, errors=1)

Original issue reported on code.google.com by nils...@googlemail.com on 10 Feb 2014 at 7:22

GoogleCodeExporter commented 9 years ago
I've updated the mass checks to use another (hopefully better cross-platform 
check), but those masses are the same.  This was updated a while ago.

The long-standing semi-broken PBEAML card has also been fixed.

Original comment by mesheb82 on 21 Feb 2014 at 4:37

GoogleCodeExporter commented 9 years ago

Original comment by mesheb82 on 21 Feb 2014 at 4:37