Skip to content

Commit

Permalink
fixed auto tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miniufo committed Oct 29, 2024
1 parent 33adfb7 commit e82772e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_openDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
def test_template1():
dset1 = open_CtlDataset('./ctls/test8.ctl')
dset2 = open_CtlDataset('./ctls/test9.ctl')
dset3 = xr.tutorial.open_dataset('air_temperature').load().astype('>f4')
dset3 = xr.tutorial.open_dataset('air_temperature')

for l in range(len(dset1.time)):
xr.testing.assert_equal(dset1.air[l], dset2.air[l])
xr.testing.assert_equal(dset1.air[l], dset3.air[l])
xr.testing.assert_allclose(dset1.air[l], dset2.air[l])
xr.testing.assert_allclose(dset1.air[l], dset3.air[l])


# def test_template2():
Expand Down

0 comments on commit e82772e

Please sign in to comment.