Skip to content

Commit

Permalink
Fixed flake8 formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ganyushin committed Jan 29, 2021
1 parent a492e24 commit 50d293d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testing/adios2/bindings/python/TestBPSelectSteps_nompi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

TESTDATA_FILENAME = "steps_int32.bp"


class TestAdiosSelectSteps(unittest.TestCase):

def setUp(self):
total_steps = 10
with adios2.open(TESTDATA_FILENAME, "w") as fh:
Expand All @@ -36,7 +38,9 @@ def test_select_steps_reading_fullAPI(self):
var.SetStepSelection([0, len(selected_steps)])
data = np.zeros(len(selected_steps), dtype=np.int32)
fh.Get(var, data, adios2.Mode.Sync)
self.assertTrue(all([data[i] == selected_steps[i] for i in range(len(selected_steps))]))
self.assertTrue(all([data[i] == selected_steps[i] for i in
range(len(selected_steps))]))


if __name__ == '__main__':
unittest.main()

0 comments on commit 50d293d

Please sign in to comment.