io.tests.test_netcdf

Tests for netcdf

Module Contents

Functions

make_simple(*args,**kwargs)
check_simple(ncfileobj) Example fileobj tests
assert_mask_matches(arr,expected_mask) Asserts that the mask of arr is effectively the same as expected_mask.
test_read_write_files()
test_read_write_sio()
test_read_example_data()
test_itemset_no_segfault_on_readonly()
test_write_invalid_dtype()
test_flush_rewind()
test_dtype_specifiers()
test_ticket_1720()
test_mmaps_segfault()
test_zero_dimensional_var()
test_byte_gatts()
test_open_append()
test_append_recordDimension()
test_maskandscale()
test_read_withValuesNearFillValue()
test_read_withNoFillValue()
test_read_withFillValueAndMissingValue()
test_read_withMissingValue()
test_read_withFillValNaN()
test_read_withChar()
test_read_with2dVar()
test_read_withMaskAndScaleFalse()
make_simple(*args, **kwargs)
check_simple(ncfileobj)

Example fileobj tests

assert_mask_matches(arr, expected_mask)

Asserts that the mask of arr is effectively the same as expected_mask.

In contrast to numpy.ma.testutils.assert_mask_equal, this function allows testing the ‘mask’ of a standard numpy array (the mask in this case is treated as all False).

arr: ndarray or MaskedArray
Array to test.
expected_mask: array_like of booleans
A list giving the expected mask.
test_read_write_files()
test_read_write_sio()
test_read_example_data()
test_itemset_no_segfault_on_readonly()
test_write_invalid_dtype()
test_flush_rewind()
test_dtype_specifiers()
test_ticket_1720()
test_mmaps_segfault()
test_zero_dimensional_var()
test_byte_gatts()
test_open_append()
test_append_recordDimension()
test_maskandscale()
test_read_withValuesNearFillValue()
test_read_withNoFillValue()
test_read_withFillValueAndMissingValue()
test_read_withMissingValue()
test_read_withFillValNaN()
test_read_withChar()
test_read_with2dVar()
test_read_withMaskAndScaleFalse()