From e5408c317ae853021f429bc74b0ba6b11ba491b5 Mon Sep 17 00:00:00 2001 From: SteveDoyle2 Date: Wed, 4 Dec 2024 21:08:50 -0800 Subject: [PATCH] fixing tests --- pyNastran/converters/fluent/fluent.py | 3 ++- pyNastran/converters/nastran/test_nastran.py | 4 ++-- pyNastran/op2/test/test_op2.py | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pyNastran/converters/fluent/fluent.py b/pyNastran/converters/fluent/fluent.py index 60a28f410..4c357b348 100644 --- a/pyNastran/converters/fluent/fluent.py +++ b/pyNastran/converters/fluent/fluent.py @@ -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: diff --git a/pyNastran/converters/nastran/test_nastran.py b/pyNastran/converters/nastran/test_nastran.py index b0816353d..d9150e7e0 100644 --- a/pyNastran/converters/nastran/test_nastran.py +++ b/pyNastran/converters/nastran/test_nastran.py @@ -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() diff --git a/pyNastran/op2/test/test_op2.py b/pyNastran/op2/test/test_op2.py index f2b6a0291..5c716cfdd 100644 --- a/pyNastran/op2/test/test_op2.py +++ b/pyNastran/op2/test/test_op2.py @@ -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))