Skip to content

Commit

Permalink
Merge pull request #3402 from Xarthisius/fix_small_patch
Browse files Browse the repository at this point in the history
Change the loop order to avoid executing the same test 3 times
  • Loading branch information
neutrinoceros authored Jul 7, 2021
2 parents 7cc5f89 + 20cceed commit 26c32e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt/utilities/answer_testing/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,13 +1193,13 @@ def small_patch_amr(ds_fn, fields, input_center="max", input_weight=("gas", "den
yield ParentageRelationshipsTest(ds_fn)
for field in fields:
yield GridValuesTest(ds_fn, field)
for axis in [0, 1, 2]:
for dobj_name in dso:
for dobj_name in dso:
for axis in [0, 1, 2]:
for weight_field in [None, input_weight]:
yield ProjectionValuesTest(
ds_fn, axis, field, weight_field, dobj_name
)
yield FieldValuesTest(ds_fn, field, dobj_name)
yield FieldValuesTest(ds_fn, field, dobj_name)


def big_patch_amr(ds_fn, fields, input_center="max", input_weight=("gas", "density")):
Expand Down

0 comments on commit 26c32e9

Please sign in to comment.