Skip to content

Commit e19a7bb

Browse files
committed
fixing tests
1 parent 51cd122 commit e19a7bb

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

pyNastran/bdf/cards/aero/aero.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4978,16 +4978,20 @@ def safe_cross_reference(self, model: BDF, xref_errors):
49784978

49794979
def uncross_reference(self) -> None:
49804980
"""Removes cross-reference links"""
4981+
self.caero_body_ids = self.get_caero_body_ids()
4982+
self.caero_body_ids_ref = None
4983+
4984+
def get_caero_body_ids(self) -> list[int]:
49814985
if self.caero_body_refs is None:
49824986
return
49834987

49844988
caero_body_ids = []
49854989
for caero_body in self.caero_body_refs:
49864990
caero_body_id = caero_body.eid
49874991
caero_body_ids.append(caero_body_id)
4988-
self.caero_body_ids = caero_body_ids
4992+
return caero_body_ids
49894993

4990-
def raw_fields(self):
4994+
def raw_fields(self) -> list:
49914995
"""
49924996
Gets the fields in their unmodified form
49934997
@@ -4997,7 +5001,7 @@ def raw_fields(self):
49975001
the fields that define the card
49985002
49995003
"""
5000-
list_fields = ['PAERO1', self.pid] + self.caero_body_ids
5004+
list_fields = ['PAERO1', self.pid] + self.get_caero_body_ids()
50015005
return list_fields
50025006

50035007
def write_card(self, size: int=8, is_double: bool=False) -> str:

pyNastran/bdf/cards/aero/static_loads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def validate(self):
789789
errors.append(msgi)
790790

791791
if errors:
792-
msg = f'TRIM id={self.trim_id:d}\n -' + '\n - '.join(errors)
792+
msg = f'TRIM id={self.sid:d}\n -' + '\n - '.join(errors)
793793
raise RuntimeError(msg.rstrip('\n- '))
794794

795795
def verify_trim(self,

pyNastran/bdf/cards/test/test_aero.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,6 @@ def test_caero1_1(self):
14291429
assert len(points) == 4
14301430
save_load_deck(model)
14311431

1432-
14331432
def test_spline1(self):
14341433
"""checks the SPLINE1 card"""
14351434
log = SimpleLogger(level='warning')

0 commit comments

Comments
 (0)