| 1495 | filters = tb.Filters(complevel=4) # something non-default |
| 1496 | |
| 1497 | def setUp(self): |
| 1498 | super().setUp() |
| 1499 | |
| 1500 | atom, shape = tb.IntAtom(), (1, 1) |
| 1501 | create_group = self.h5file.create_group |
| 1502 | create_carray = self.h5file.create_carray |
| 1503 | |
| 1504 | create_group("/", "implicit_no") |
| 1505 | create_group("/implicit_no", "implicit_no") |
| 1506 | create_carray( |
| 1507 | "/implicit_no/implicit_no", "implicit_no", atom=atom, shape=shape |
| 1508 | ) |
| 1509 | create_carray( |
| 1510 | "/implicit_no/implicit_no", |
| 1511 | "explicit_no", |
| 1512 | atom=atom, |
| 1513 | shape=shape, |
| 1514 | filters=tb.Filters(), |
| 1515 | ) |
| 1516 | create_carray( |
| 1517 | "/implicit_no/implicit_no", |
| 1518 | "explicit_yes", |
| 1519 | atom=atom, |
| 1520 | shape=shape, |
| 1521 | filters=self.filters, |
| 1522 | ) |
| 1523 | |
| 1524 | create_group("/", "explicit_yes", filters=self.filters) |
| 1525 | create_group("/explicit_yes", "implicit_yes") |
| 1526 | create_carray( |
| 1527 | "/explicit_yes/implicit_yes", |
| 1528 | "implicit_yes", |
| 1529 | atom=atom, |
| 1530 | shape=shape, |
| 1531 | ) |
| 1532 | create_carray( |
| 1533 | "/explicit_yes/implicit_yes", |
| 1534 | "explicit_yes", |
| 1535 | atom=atom, |
| 1536 | shape=shape, |
| 1537 | filters=self.filters, |
| 1538 | ) |
| 1539 | create_carray( |
| 1540 | "/explicit_yes/implicit_yes", |
| 1541 | "explicit_no", |
| 1542 | atom=atom, |
| 1543 | shape=shape, |
| 1544 | filters=tb.Filters(), |
| 1545 | ) |
| 1546 | |
| 1547 | def _check_filters(self, h5file, filters=None): |
| 1548 | for node in h5file: |