<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi everyone,<br>
</p>
<p><font face="Calibri"> I am encountering another error when trying
to run Type 169. <br>
</font></p>
<p><font face="Calibri">In the code I am trying to solve in Python,
I need to import a couple of libraries to solve some equations,
which I believe are the reason for the error I am getting when
trying to run the model. </font>To double check that this is
the problem for not running, I tried in the simple example
provided in the Examples of TRNSYS, adding the libraries to
import, after importing <font face="Calibri">TRNSYSpy, as follows</font>:</p>
<p><font face="Calibri">import TRNSYSpy as trn<br>
import numpy as np<br>
from scipy import optimize</font></p>
<p><font face="Calibri">and I get the following error: <i>"The
Python script failed to load</i>". If I remove the numpy and </font><font
face="Calibri"><font face="Calibri">optimize from scipy</font>,
the TRNSYS model runs... Is there a way to solve this or are
there equivalent libraries that I can use?</font></p>
<p><font face="Calibri">I am using numpy to calculate </font><font
face="Calibri"><font face="Calibri">an angle in </font>radians
and the cos of the angle, and I use optimize from scipy to solve
an equation with one unknown inside a function "sol =
optimize.root(resta, 10, args=pars, method='hybr', jac=None,
tol=None, callback=None, options=None)"<br>
</font></p>
<p>Thank you very much in advance,</p>
<p>Best Regards,<br>
MarĂa</p>
<pre class="moz-signature" cols="72">--
</pre>
</body>
</html>