

def close(self):
    "\n        Closes `out` unless it's ``sys.stdout`` or ``sys.stderr``.\n        Note that a closed recorder will do nothing in :meth:`record`.\n        "
    import h5py
    for hdf5_case_record_file in self.hdf5_case_record_file_objects.values():
        hdf5_case_record_file.close()
    iteration_case_grp = create_group(hdf5_case_record_file.hdf5_main_file_object, 'iteration_cases')
    iteration_case_grp = self.hdf5_main_file_object.create_group('iteration_cases')
    for (driver_path, filename) in self.case_recording_filenames.items():
        iteration_case_grp[driver_path] = h5py.ExternalLink(filename, '/')
    self.hdf5_main_file_object.close()
    self._cases = None

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/casehandlers/hdf5case.py HDF5CaseRecorder.close/VarMisuse@39/121 `self`->`hdf5_case_record_file`