Skip to content

Commit 51cd122

Browse files
committed
more test fixes
1 parent d88b681 commit 51cd122

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

pyNastran/bdf/cards/aero/static_loads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ def verify_trim(self,
797797
suport1: SUPORT1,
798798
aestats: dict[int, AESTAT],
799799
aeparms: dict[str, AEPARM],
800-
aelinks: dict[int, AELINK],
801-
aesurf: dict[str, AESURF], xref=True):
800+
aelinks: dict[int, list[AELINK]],
801+
aesurf: dict[int, AESURF], xref=True):
802802
"""
803803
Magic function that makes TRIM cards not frustrating.
804804

pyNastran/bdf/test/test_bdf.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,11 @@ def get_dof_map(model: BDF,
950950
model, mpc_id=mpc_id)
951951
spc_nid_to_components = {}
952952
if spc_id:
953-
spcs = model.get_reduced_spcs(spc_id, consider_spcadd=True)
953+
try:
954+
spcs = model.get_reduced_spcs(spc_id, consider_spcadd=True)
955+
except KeyError:
956+
log.error(f'Could not find SPC={spc_id}')
957+
spcs = []
954958
for spc in spcs:
955959
# TODO: add SPC
956960
if spc.type == 'SPC1':
@@ -963,9 +967,10 @@ def get_dof_map(model: BDF,
963967
for nid, comps in zip(spc.nodes, spc.components):
964968
# for comp in comps:
965969
spc_nid_to_components[nid] = spc.components
966-
970+
elif spc.type == 'GMSPC':
971+
log.warning(f'skipping\n{str(spc)}{spc.get_stats()}')
967972
else:
968-
log.warning('skipping\n%s' % spc)
973+
log.error('skipping\n%s' % spc)
969974
raise RuntimeError(spc.get_stats())
970975

971976
suport_nid_to_components = {}

pyNastran/f06/test/test_f06_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def test_f06_trim_bwb(self):
832832

833833
argv = [
834834
'f06', 'plot_144', str(f06_filename),
835-
'--caero', str(aerobox_caero_filename)]
835+
'--aerobox', str(aerobox_caero_filename)]
836836
log = get_logger(log=None, level=None, encoding='utf-8')
837837
cmd_line_f06(argv=argv, plot=IS_MATPLOTLIB,
838838
show=False, log=log)

0 commit comments

Comments
 (0)