def write_injections(self, injection_file):
        """Writes injection parameters from the given injection file.

        Everything in the injection file is copied to ``injections_group``.

        Parameters
        ----------
        injection_file : str
            Path to HDF injection file.
        """
        try:
            with h5py.File(injection_file, "r") as fp:
                super(BaseInferenceFile, self).copy(fp, self.injections_group)
        except IOError:
            logging.warn("Could not read %s as an HDF file", injection_file)
def write_injections ( self , injection_file ) : try : with h5py . File ( injection_file , "r" ) as fp : super ( BaseInferenceFile , self ) . copy ( fp , self . injections_group ) except IOError : logging . warn ( "Could not read %s as an HDF file" , injection_file )
Writes injection parameters from the given injection file.

        Everything in the injection file is copied to ``injections_group``.

        Parameters
        ----------
        injection_file : str
            Path to HDF injection file.