()
| 239 | |
| 240 | |
| 241 | def _tables(): |
| 242 | global _table_mod |
| 243 | global _table_file_open_policy_is_strict |
| 244 | if _table_mod is None: |
| 245 | import tables |
| 246 | |
| 247 | _table_mod = tables |
| 248 | |
| 249 | # set the file open policy |
| 250 | # return the file open policy; this changes as of pytables 3.1 |
| 251 | # depending on the HDF5 version |
| 252 | with suppress(AttributeError): |
| 253 | _table_file_open_policy_is_strict = ( |
| 254 | tables.file._FILE_OPEN_POLICY == "strict" |
| 255 | ) |
| 256 | |
| 257 | return _table_mod |
| 258 | |
| 259 | |
| 260 | # interface to/from ### |
no outgoing calls
no test coverage detected