Skip to content

Commit d88b681

Browse files
committed
fixing tests
1 parent 04d9853 commit d88b681

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

pyNastran/bdf/test/test_bdf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,14 @@ def get_dof_map(model: BDF,
956956
if spc.type == 'SPC1':
957957
for nid in spc.nodes:
958958
spc_nid_to_components[nid] = spc.components
959+
elif spc.type == 'SPC':
960+
# components: ['123456']
961+
# nodes: [9]
962+
assert len(spc.nodes) == len(spc.components), spc.get_stats()
963+
for nid, comps in zip(spc.nodes, spc.components):
964+
# for comp in comps:
965+
spc_nid_to_components[nid] = spc.components
966+
959967
else:
960968
log.warning('skipping\n%s' % spc)
961969
raise RuntimeError(spc.get_stats())

pyNastran/dev/bdf_vectorized3/bdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ def _verify_bdf(self, xref: Optional[bool]=None) -> None:
12561256
xref = self._xref
12571257
verify_bdf(self, xref)
12581258

1259-
def include_zip(self, bdf_filename: Optional[str]=None,
1259+
def include_zip(self, bdf_filename: Optional[PathLike]=None,
12601260
encoding: Optional[str]=None,
12611261
make_ilines: bool=True) -> tuple[list[str], Any]:
12621262
"""

pyNastran/dev/bdf_vectorized3/test/test_bdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2813,8 +2813,8 @@ def test_bdf_argparse(argv=None):
28132813
parent_parser.add_argument('--dumplines', action='store_true',
28142814
help='Writes the BDF exactly as read with the INCLUDEs processed\n'
28152815
'(pyNastran_dump.bdf)')
2816-
parent_parser.add_argument('--skip_cards', type=str,
2817-
help='Define cards to skip')
2816+
# parent_parser.add_argument('--skip_cards', nargs=1, type=str,
2817+
# help='Define cards to skip')
28182818
parent_parser.add_argument('--dictsort', action='store_true',
28192819
help='Writes the BDF exactly as read with the INCLUDEs processed\n'
28202820
'(pyNastran_dict.bdf)')

pyNastran/op2/op2_interface/op2_reader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4855,10 +4855,11 @@ def read_oaerop(op2_reader: OP2Reader) -> None:
48554855
assert isinstance(subtitle, str), subtitle
48564856
assert isinstance(label, str), label
48574857
# assert isinstance(subcase_id, integer_types), subcase_id
4858+
elements = -np.ones(len(nodes), dtype=nodes.dtype)
48584859
apress = AeroPressure(
48594860
subcase_id,
48604861
mach, q, cref, bref, sref,
4861-
nodes, cp, pressure, # labels,
4862+
nodes, elements, cp, pressure, # labels,
48624863
title=title, subtitle=subtitle, label=label)
48634864

48644865
assert subcase_key not in op2.op2_results.trim.aero_force

0 commit comments

Comments
 (0)