<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Hi Kanupriya,</span>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">The functions located in fieldtrip/contrib, including ft_nonlinearassociation have been contributed to FieldTrip by external contributors, with a variable amount of dedication to keep their
 contributions up-to-date/backward compatible - including the documentation information -  with the ever imrpoving code base of the core FieldTrip code. As such, since the function you refer to is a very old function, I can imagine that it does not work anymore
 (assuming that it used to work in the first place). </div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Just to provide some background to the issue you seem to be facing: the function defines a ‘default’ cfg.toi of [] if the user hasn’t specified any. I suggest that you start with defining
 a meaningful cfg.toi - meaningful for your data - which could already solve it for you.</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">If indeed the function does not work as expected (and this by the way does not count only for the contrib functions), anybody is kindly invited to suggest code improvements. So feel free
 to try and fix this (or team up with somebody to try and fix it).</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best wishes,</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class="">
</div>
<div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Jan-Mathijs</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 5 Feb 2022, at 05:22, Kanupriya Gupta via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hello, 
<div class=""><br class="">
</div>
<div class="">I am wondering if anybody has successfully used ft_nonlinear association. I am having a lot of trouble using this script. Specifically, the information preceding the script says to set cfg.toi to []. However, cfg.toi is used later in the script
 and having it set to [] makes the time window [0,0] which doesn't make sense. If anyone could help, I would greatly appreciate it. </div>
<div class=""><br class="">
</div>
<div class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="margin:0px;padding:0px;border:0px;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(50,49,48)" class="">
<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:11pt;line-height:inherit;font-family:Arial,Helvetica,sans-serif;vertical-align:baseline;color:inherit" class=""><b class="">Kanupriya
 Gupta </b></span></div>
<div style="margin:0px;padding:0px;border:0px;font-stretch:inherit;font-size:15px;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(50,49,48)" class="">
<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:11pt;line-height:inherit;font-family:Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(34,34,34)" class="">Physician
 Scientist Training Program</span>
<div style="color: rgb(34, 34, 34); font-size: small; font-family: Arial, Helvetica, sans-serif; margin: 0px;" class="">
<u class=""></u></div>
<div style="color: rgb(34, 34, 34); font-size: small; font-family: Arial, Helvetica, sans-serif; margin: 0px;" class="">
<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:11pt;line-height:inherit;font-family:inherit;vertical-align:baseline;color:inherit" class="">University of Pittsburgh School
 of Medicine</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!_iBrViBB3yIiNrhFtx_qKCKn7Td1L815H7mqJN5btKOzjQqV_kJBc77boQF_kVkWEzi-bJ1m3WTZpyQGcdJJAwWJswuIIwFFtLDkmg$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>