<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
    <font face="Linux Biolinum O">Hi all<br>
      I posted this question in stackoverflow but seems MNE community is
      not active there, hence I searched for MNE mailing list and joined
      it. <br>
      I use MNE for analysis of both rat and human EEG recordings. The
      system we have for rat EEG is from a company called NeuroNexus,
      and they have their own Matlab script to convert the EEG
      recordings and the time stamps into mat files. And then I import
      them in python and use MNE to analyse and visualise them. This
      means I have to establish my EEG raw objects from the scratch and
      save them to file, which I can do. But a seemingly trivial thing
      that I have not managed to find out how to do is to incorporate
      the time array into the EEG raw object. When I create and save the
      EEG raw object, it automatically set the initial time to 0, but my
      initial recording time is not 0 and I need to offset that. It is
      important to correct this, because the time stamps of EEG and
      behavioural data should match. </font><br>
    <font face="Linux Biolinum O">Simply typing <code>raw.times =
        new_array</code> leads to <code>AttributeError: can't set
        attribute. </code></font><font face="Linux Biolinum O"><code><font
          face="Linux Biolinum O">This should be a very simple thing to
          do, but I have not been able to find it although I have looked
          into the documentation. So, I thought to ask it in here and if
          it is not really possible, then dig into the source code to
          fix it myself. Thanks in advance. <br>
          Regards,<br>
          Vahid<br>
        </font></code></font>
    <pre class="moz-signature" cols="72">-- 
---------------------------------------------------------------------------------------
Vahid S. Bokharaie, PhD
Senior Research Scientist
Max Planck Institute for Biological Cybernetics
Department of Physiology of Cognitive Processes
Max Planck Ring 8, 72076 Tuebingen,  Germany
+49 (0)7071 - 601-1644
<a class="moz-txt-link-abbreviated" href="mailto:vahid.bokharaie@tuebingen.mpg.de">vahid.bokharaie@tuebingen.mpg.de</a>
<a class="moz-txt-link-freetext" href="https://www.kyb.tuebingen.mpg.de/person/59086/84548">https://www.kyb.tuebingen.mpg.de/person/59086/84548</a>
--------------------------------------------------------------------------------------
</pre>
  </body>
</html>