<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hi Jacob,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">The 3D table syntax seems to be working perfectly for my purposes. Thank you for getting back to me so quickly.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Everett Mumford<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Jacob Barhak [mailto:jacob.barhak@gmail.com]
<br>
<b>Sent:</b> Friday, April 1, 2016 6:30 PM<br>
<b>To:</b> Everett Mumford &lt;emumford@uw.edu&gt;<br>
<b>Cc:</b> mist-support@simtk.org<br>
<b>Subject:</b> Re: [Mist-support] MIST Test Code Error<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Hi Everett,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">You are correct in your thinking. Tables are designed to do exactly what you are trying to do. However, you are also right that humans have difficulty with constructing those tables - it is not easy above 2D.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">There is a&nbsp;simple workaround if you want to use only 3D tables. Use 2D tables that you were able to construct with Iif statements that are easier to comprehend for humans. I myself use this sometimes for clarity, yet this is not the efficient
 way to go, especially if you have more dimensions.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">The real solution is writing a&nbsp;table with more dimensions. I decided to write an example for a 3D table that returns the column that calls it. Here is the example:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Table([ [Year, [NaN,2013,2014]], [Male, [NaN,0,1]], [Age,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Note the following elements:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">1. The first parameter passed to table is the list of dimensions - think of it as the row/column titles of a table you write on paper<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">1a. Each dimension has&nbsp;a range attached to it&nbsp; <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">1b. If you&nbsp;use NaN&nbsp;in the first range parameter this means the range is categorical otherwise it is continuous. In any case range numbers should be presented in increasing order<o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">1c. Note that this example is a bit more complicated than yours,&nbsp;since Age is continuous = float&nbsp;while year and Male are categorical parameters = integers.
<o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal">2.&nbsp; The second parameter of the Table function contains the data<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2a. The inner-most dimension is the one defined last in the list of dimensions while the outermost is the first defined.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">2b. In this example the data corresponds to the row/column within the dimension that called it - this is a simple way of making sure your table structure is ok before populating real data.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">3. Since this is confusing, I sometimes write test code as a python script to test that I used tables properly. You can find some below corresponding to this example.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Hopefully this is sufficient information for you to proceed and write your own tables.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jacob<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">##### Test Script to use with table #####<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">import DataDef as DB<br>
NaN = DB.NaN<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
# Table([ [Year, [NaN,2013,2014]], [Male, [NaN,0,1]], [Age,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"># Should bring back element 111<br>
Result = DB.TableRunTime([ [2013, [NaN,2013,2014]], [0, [NaN,0,1]], [30,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<br>
assert(Result == 111)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
# Should bring back element 112, note that Age 31 is in the category of 30&lt;Age&lt;=60<br>
Result = DB.TableRunTime([ [2013, [NaN,2013,2014]], [0, [NaN,0,1]], [31,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<br>
assert(Result == 112)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"># Should bring back element 112<br>
Result = DB.TableRunTime([ [2013, [NaN,2013,2014]], [0, [NaN,0,1]], [60,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<br>
assert(Result == 112)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"># Should bring back element 211<br>
Result = DB.TableRunTime([ [2014, [NaN,2013,2014]], [0, [NaN,0,1]], [1,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<br>
assert(Result == 211)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"># Should bring back element 223,&nbsp; note that Age 1 is in the category of 0&lt;Age&lt;=30<br>
Result = DB.TableRunTime([ [2014, [NaN,2013,2014]], [1, [NaN,0,1]], [120,[0,30,60,120]] ], [ [[111,112,113],[121,122,123]] , [[211,212,213],[221,222,223]] ])<br>
assert(Result == 223)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">print 'All Tests Passed OK'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Fri, Apr 1, 2016 at 11:50 AM, Everett Mumford &lt;<a href="mailto:emumford@uw.edu" target="_blank">emumford@uw.edu</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hi Jacob,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Thank you again for all of your help using MIST! I am hoping to run a simulation that allows for transition
 probabilities to change as time progresses for an individual simulant. I want to transition simulants from an ‘Alive’ state to a ‘Dead’ state. I have mortality rates (transition probabilities) that differ by age, sex, and year. As a simulant ages, I am hoping
 to make his/her mortality change. For instance, the mortality rate for a given disease is different for a 50 year old male in 2013 than it is for that same male when he is an 51 years old in 2014. The mortality rate for a 50 year old male in 2013 is also different
 than the mortality rate for a 50 year old male in 2014.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">I think the best way to accomplish my goal is to create a 3 dimensional object in the ‘transitions
 between states in a model page’. I have been able to create a 2 dimensional table with dummy data using the expression below.
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Table([[sex,[NaN,1,2]],[age,[NaN,1,2]]],[[.25,.6],[.3,.55]])</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">I believe the expression above creates a table that looks like this:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="192" style="width:2.0in;border-collapse:collapse">
<tbody>
<tr style="height:15.0pt">
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
</td>
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">age=1</span><o:p></o:p></p>
</td>
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">age=2</span><o:p></o:p></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">sex=1</span><o:p></o:p></p>
</td>
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">0.25</span><o:p></o:p></p>
</td>
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">0.6</span><o:p></o:p></p>
</td>
</tr>
<tr style="height:15.0pt">
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">sex=2</span><o:p></o:p></p>
</td>
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">0.3</span><o:p></o:p></p>
</td>
<td width="64" nowrap="" style="width:48.0pt;padding:0in 5.4pt 0in 5.4pt;height:15.0pt">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:black">0.55</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">I am hoping that I can make a table like this (thought with far more ages) for each year so that I
 can apply the correct mortality rate for each age/sex/year cohort in MIST. I believe that this is possible after reading through the online help page, but am having trouble writing the correct syntax. Is it possible to create a 3-dimensional object like I
 am describing? Or is there a better way that I can accomplish my goal of assigning different transition probabilities by age/sex/year?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Best regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Everett
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentColor currentColor">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Everett Mumford
<br>
<b>Sent:</b> Thursday, March 24, 2016 10:05 AM<br>
<b>To:</b> 'Jacob Barhak' &lt;<a href="mailto:jacob.barhak@gmail.com" target="_blank">jacob.barhak@gmail.com</a>&gt;<br>
<b>Cc:</b> <a href="mailto:mist-support@simtk.org" target="_blank">mist-support@simtk.org</a><br>
<b>Subject:</b> RE: [Mist-support] MIST Test Code Error</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hi Jacob,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Downgrading Matplotlib seems to have fixed the issue. Thank you for all of your help with this. I have
 really enjoyed using the MIST thus far and think that it will be very useful for my research.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Best regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Everett</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Jacob Barhak [</span><a href="mailto:jacob.barhak@gmail.com" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">mailto:jacob.barhak@gmail.com</span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">]
<br>
<b>Sent:</b> Thursday, March 24, 2016 12:30 AM<br>
<b>To:</b> Everett Mumford &lt;</span><a href="mailto:emumford@uw.edu" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">emumford@uw.edu</span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&gt;<br>
<b>Cc:</b> </span><a href="mailto:mist-support@simtk.org" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">mist-support@simtk.org</span></a><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><br>
<b>Subject:</b> Re: [Mist-support] MIST Test Code Error</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi Everett,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">It seems that the new version of Anaconda uses by default a new version of Matplotlib that breaks previous MIST code.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">If you wish to use MIST 0_92_0_0 with the plot capability, you should downgrade Matplotlib.&nbsp;Within anaconda, you can do this by using the command:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">conda install matplotlib=1.3.1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">This worked on my windows machine. And is a suitable ad hoc solution if you have no code that depends on a newer matplotlib version.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Note that the plot capability is related to the MIST script CreatePlotsFromCSV.py. This script is rarely used for basic modeling and simulation, and you can use other MIST capabilities&nbsp;without
 changing the matplotlib version, as long as you ignore the plot capabilities in the CreatePlotsFromCSV.py script.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">If TestCode.py does not report any other error, you should be good to proceed. Yet it is better to test this at least once by using the matplotlib downgrade command.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I will check downstream to see what was upgraded in Matplotlib to avoid this issue in the future and may provide other solutions. I also opened an issue in Github to address this.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Let me know if you encounter any other issues.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Yet hopefully, this solution will allow you to proceed for now.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jacob<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Wed, Mar 23, 2016 at 7:10 PM, Everett Mumford &lt;<a href="mailto:emumford@uw.edu" target="_blank">emumford@uw.edu</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:currentColor currentColor currentColor rgb(204,204,204)">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Hi Jacob,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Thank you for your prompt response. I am using Windows 8.1. I am using Anaconda (64-BIT) for Python
 2.7. My matplotlib version is 1.5.1.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Best regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Everett Mumford</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Jacob Barhak [mailto:</span><a href="mailto:jacob.barhak@gmail.com" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">jacob.barhak@gmail.com</span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">]
<br>
<b>Sent:</b> Wednesday, March 23, 2016 4:52 PM<br>
<b>To:</b> Everett Mumford &lt;</span><a href="mailto:emumford@uw.edu" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">emumford@uw.edu</span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">&gt;<br>
<b>Cc:</b> </span><a href="mailto:mist-support@simtk.org" target="_blank"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">mist-support@simtk.org</span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><br>
<b>Subject:</b> Re: [Mist-support] MIST Test Code Error</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p>Hi Everett,<o:p></o:p></p>
<p>What OS are you using? What kind of python distribution you are using and what is your matplotlib version?
<br>
If you are using anaconda, can you specify what version? <o:p></o:p></p>
<p>This will help isolate the issue and treat it. <o:p></o:p></p>
<p>The goods news are that if only the plots do not pass the test script, then you can still use the system for modeling and simulation and export data to create plots outside the system.
<o:p></o:p></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Jacob<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Mar 23, 2016 6:40 PM, &quot;Everett Mumford&quot; &lt;<a href="mailto:emumford@uw.edu" target="_blank">emumford@uw.edu</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt;border-color:currentColor currentColor currentColor rgb(204,204,204)">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi MIST support,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am having issues running TestCode.py. The code gets an error when it reaches the PlotGeneration scripts. The code does not always error out on the same script (e.g. I have run
 into errors when the code tries to run PlotGeneration5_rmjj.py, PlotGenerationoit6qb.py, etc.). I have tried uninstalling and then reinstalling the package several times.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Have you seen a similar error? And can you please provide assistance?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks!<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best regards,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Everett Mumford<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><br>
_______________________________________________<br>
MIST-support mailing list<br>
<a href="mailto:MIST-support@simtk.org" target="_blank">MIST-support@simtk.org</a><br>
<a href="https://simtk.org/mailman/listinfo/mist-support" target="_blank">https://simtk.org/mailman/listinfo/mist-support</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">&nbsp;<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>