GitHub PullRequestReviewCommentEvent at 2014-04-10 16:06:25
Repository: mne-python
Actor: dengemann
Payload: {"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/11492425","id":11492425,"diff_hunk":"@@ -1911,3 +1911,103 @@ def bootstrap(epochs, random_state=None):\n     idx = rng.randint(0, n_events, n_events)\n     epochs_bootstrap = epochs_bootstrap[idx]\n     return epochs_bootstrap\n+\n+\n+def _check_merge_epochs(epochs_list):\n+    \"\"\"Aux function\"\"\"\n+    event_ids = set(tuple(epochs.event_id.items()) for epochs in epochs_list)\n+    if len(event_ids) == 1:\n+        event_id = dict(event_ids.pop())\n+    else:\n+        raise NotImplementedError(\"Epochs with unequal values for event_id\")\n+\n+    tmins = set(epochs.tmin for epochs in epochs_list)\n+    if len(tmins) == 1:\n+        tmin = tmins.pop()\n+    else:\n+        raise NotImplementedError(\"Epochs with unequal values for tmin\")\n+\n+    tmaxs = set(epochs.tmax for epochs in epochs_list)\n+    if len(tmaxs) == 1:\n+        tmax = tmaxs.pop()\n+    else:\n+        raise NotImplementedError(\"Epochs with unequal values for tmax\")\n+\n+    baselines = set(epochs.baseline for epochs in epochs_list)\n+    if len(baselines) == 1:\n+        baseline = baselines.pop()\n+    else:\n+        raise NotImplementedError(\"Epochs with unequal values for baseline\")\n+\n+    return event_id, tmin, tmax, baseline\n+\n+\n+@verbose\n+def add_channels_epochs(epochs_list, name='Unknown', add_eeg_ref=True,\n+                        verbose=None):","path":"mne/epochs.py","position":46,"original_position":46,"commit_id":"9d722143a681416cdb1b644e1492be169941aa78","original_commit_id":"6ea77ab65e908b23da779504d55d1c5942b13c31","user":{"login":"dengemann","id":1908618,"avatar_url":"https://avatars.githubusercontent.com/u/1908618?","gravatar_id":"6a4d7813e97a1152418809d9a2e67db9","url":"https://api.github.com/users/dengemann","html_url":"https://github.com/dengemann","followers_url":"https://api.github.com/users/dengemann/followers","following_url":"https://api.github.com/users/dengemann/following{/other_user}","gists_url":"https://api.github.com/users/dengemann/gists{/gist_id}","starred_url":"https://api.github.com/users/dengemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dengemann/subscriptions","organizations_url":"https://api.github.com/users/dengemann/orgs","repos_url":"https://api.github.com/users/dengemann/repos","events_url":"https://api.github.com/users/dengemann/events{/privacy}","received_events_url":"https://api.github.com/users/dengemann/received_events","type":"User","site_admin":false},"body":"I use it in Epochs to measure trigger latencies and so on ... ","created_at":"2014-04-10T16:06:25Z","updated_at":"2014-04-10T16:06:25Z","html_url":"https://github.com/mne-tools/mne-python/pull/1213#discussion_r11492425","pull_request_url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1213","_links":{"self":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/comments/11492425"},"html":{"href":"https://github.com/mne-tools/mne-python/pull/1213#discussion_r11492425"},"pull_request":{"href":"https://api.github.com/repos/mne-tools/mne-python/pulls/1213"}}}}