|
346 | 346 |
|
347 | 347 | <section id="user-guide"> |
348 | 348 | <span id="id1"></span><h1>User Guide<a class="headerlink" href="#user-guide" title="Link to this heading">#</a></h1> |
349 | | -<div class="admonition important"> |
350 | | -<p class="admonition-title">Important</p> |
351 | | -<ul class="simple"> |
352 | | -<li><p>You must have the <a class="reference external" href="https://www.sr-research.com/support/forum-3.html">EyeLink Software Development Kit</a> installed on your computer</p></li> |
353 | | -<li><p>You must register an account on the forum to access the download (registration is free)</p></li> |
354 | | -</ul> |
355 | | -</div> |
356 | 349 | <section id="installation"> |
357 | 350 | <h2>Installation<a class="headerlink" href="#installation" title="Link to this heading">#</a></h2> |
358 | 351 | <div class="admonition note"> |
@@ -381,10 +374,11 @@ <h3>3. <strong>Development Installation</strong> (Dynamic)<a class="headerlink" |
381 | 374 | </div> |
382 | 375 | <div class="admonition important"> |
383 | 376 | <p class="admonition-title">Important</p> |
| 377 | +<p>To install the package in editable mode, you must:</p> |
384 | 378 | <ul class="simple"> |
385 | 379 | <li><p>Fork the repository on GitHub first.</p></li> |
386 | 380 | <li><p>Clone your forked repository to your computer.</p></li> |
387 | | -<li><p>Make sure you’re in the directory <em>containing</em> the cloned <code class="docutils literal notranslate"><span class="pre">eyelinkio</span></code> folder when you run the command above.</p></li> |
| 381 | +<li><p>Make sure you’re in the directory <em>containing</em> the cloned <code class="docutils literal notranslate"><span class="pre">eyelinkio</span></code> folder when you run the command provided above.</p></li> |
388 | 382 | </ul> |
389 | 383 | </div> |
390 | 384 | </section> |
@@ -456,6 +450,29 @@ <h3>Converting to a DataFrame or MNE Raw instance<a class="headerlink" href="#co |
456 | 450 | <p><a class="reference external" href="https://mne.tools/stable/auto_tutorials/preprocessing/90_eyetracking_data.html">Working with eyetracking data in MNE</a></p> |
457 | 451 | </div> |
458 | 452 | </section> |
| 453 | +<section id="using-the-edf-api-library-installed-on-your-system"> |
| 454 | +<h3>Using the EDF API Library installed on your system<a class="headerlink" href="#using-the-edf-api-library-installed-on-your-system" title="Link to this heading">#</a></h3> |
| 455 | +<p>If you have the EDF API Library installed on your system, you can explicitly direct |
| 456 | +EyeLinkIO to rely on it when reading your EDF files. This can be done by setting the |
| 457 | +<code class="docutils literal notranslate"><span class="pre">EYELINKIO_USE_INSTALLED_EDFAPI</span></code> parameter to <code class="docutils literal notranslate"><span class="pre">true</span></code> before importing EyeLinkIO.</p> |
| 458 | +<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">os</span> |
| 459 | +<span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="p">[</span><span class="s2">"EYELINKIO_USE_INSTALLED_EDFAPI"</span><span class="p">]</span> <span class="o">=</span> <span class="s2">"true"</span> |
| 460 | + |
| 461 | +<span class="kn">from</span> <span class="nn">eyelinkio.io</span> <span class="kn">import</span> <span class="n">read_edf</span> |
| 462 | + |
| 463 | +<span class="n">fname</span> <span class="o">=</span> <span class="n">_get_test_fnames</span><span class="p">()[</span><span class="mi">0</span><span class="p">]</span> <span class="c1"># Replace this function with the path to your EDF file</span> |
| 464 | +<span class="n">edf_file</span> <span class="o">=</span> <span class="n">read_edf</span><span class="p">(</span><span class="n">fname</span><span class="p">)</span> |
| 465 | +<span class="nb">print</span><span class="p">(</span><span class="n">edf_file</span><span class="p">)</span> |
| 466 | +</pre></div> |
| 467 | +</div> |
| 468 | +<p>Otherwise, EyeLinkIO will rely on the EDF API Library that comes with the package.</p> |
| 469 | +<div class="admonition note"> |
| 470 | +<p class="admonition-title">Note</p> |
| 471 | +<p>If you want to install the EyeLink Developers Kit, you can download it from the |
| 472 | +<a class="reference external" href="https://www.sr-research.com/support/forum-3.html">SR Research website</a>. You will |
| 473 | +need to register an account to access the download page (registration is free).</p> |
| 474 | +</div> |
| 475 | +</section> |
459 | 476 | </section> |
460 | 477 | </section> |
461 | 478 |
|
@@ -516,6 +533,7 @@ <h3>Converting to a DataFrame or MNE Raw instance<a class="headerlink" href="#co |
516 | 533 | <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#reading-an-edf-file">Reading an EDF file</a></li> |
517 | 534 | <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#inspecting-an-edf-object">Inspecting an EDF object</a></li> |
518 | 535 | <li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#converting-to-a-dataframe-or-mne-raw-instance">Converting to a DataFrame or MNE Raw instance</a></li> |
| 536 | +<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#using-the-edf-api-library-installed-on-your-system">Using the EDF API Library installed on your system</a></li> |
519 | 537 | </ul> |
520 | 538 | </li> |
521 | 539 | </ul> |
|
0 commit comments