def get_observations(self, obs_id, skip_missing=False):
    'Generate a `~gammapy.data.Observations`.\n\n        Parameters\n        ----------\n        obs_id : list\n            Observation IDs.\n        skip_missing : bool, optional\n            Skip missing observations, default: False\n\n        Returns\n        -------\n        observations : `~gammapy.data.Observations`\n            Container holding a list of `~gammapy.data.DataStoreObservation`\n        '
    obs_list = []
    for _ in obs_id:
        try:
            obs = self.obs(_)
        except ValueError as err:
            if skip_missing:
                log.warning('Skipping missing obs_id: {!r}'.format(_))
                continue
            else:
                raise err
        else:
            obs_list.append(obs)
    return Observations(obs_list)
Generate a `~gammapy.data.Observations`.

Parameters
----------
obs_id : list
    Observation IDs.
skip_missing : bool, optional
    Skip missing observations, default: False

Returns
-------
observations : `~gammapy.data.Observations`
    Container holding a list of `~gammapy.data.DataStoreObservation`
def get_observations(self, obs_id, skip_missing=False):
    'Generate a `~gammapy.data.Observations`.\n\n        Parameters\n        ----------\n        obs_id : list\n            Observation IDs.\n        skip_missing : bool, optional\n            Skip missing observations, default: False\n\n        Returns\n        -------\n        observations : `~gammapy.data.Observations`\n            Container holding a list of `~gammapy.data.DataStoreObservation`\n        '
    obs_list = []
    for _ in obs_id:
        try:
            obs = self.obs(_)
        except ValueError as err:
            if skip_missing:
                log.warning('Skipping missing obs_id: {!r}'.format(_))
                continue
            else:
                raise err
        else:
            obs_list.append(obs)
    return Observations(obs_list)