Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Dec 5, 2024
1 parent a07f8b7 commit e5408c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pyNastran/converters/fluent/fluent.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def get_filtered_data(self,
#deepcopy: bool=True,
) -> tuple[np.ndarray, np.ndarray, np.ndarray,
np.ndarray, np.ndarray]:
assert np.array_equal(self.result_element_id, np.unique(self.result_element_id))
# False
#assert np.array_equal(self.result_element_id, np.unique(self.result_element_id))
if regions_to_remove is None:
regions_to_remove = []
if regions_to_include is None:
Expand Down
4 changes: 2 additions & 2 deletions pyNastran/converters/nastran/test_nastran.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def test_displacement_results(self):
- DisplacementResults2
- ForceResults2
"""
bdf_filename = os.path.join(MODEL_PATH, 'aero', '2_mode_flutter', '0012_flutter.bdf')
op2_filename = os.path.join(MODEL_PATH, 'aero', '2_mode_flutter', '0012_flutter.op2')
bdf_filename = MODEL_PATH / 'aero' / '2_mode_flutter' / '0012_flutter.bdf'
op2_filename = MODEL_PATH / 'aero' / '2_mode_flutter' / '0012_flutter.op2'
model = read_bdf(bdf_filename, debug=False)

out = model.get_displacement_index_xyz_cp_cd()
Expand Down
3 changes: 2 additions & 1 deletion pyNastran/op2/test/test_op2.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ def run_op2(op2_filename: PathLike, make_geom: bool=False, combine: bool=True,
op2.get_op2_stats(short=True)
op2.object_attributes()
op2.object_methods()
op2.get_key_order()
if not combine:
op2.get_key_order()
if not quiet:
print(f'---stats for {op2_filename}---')
print(op2.get_op2_stats(short=short_stats))
Expand Down

0 comments on commit e5408c3

Please sign in to comment.