<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi John, <br><br>thank you for your time and help. <br><br>I used conda to install yt.<br>I am using Ubuntu  14 LTS but I am a newbie. <br><br>Again, thank you.<br>Alex <br><br><hr>From: jzuhone@gmail.com<br>Date: Mon, 31 Aug 2015 17:49:51 -0400<br>To: yt-users@lists.spacepope.org<br>Subject: Re: [yt-users] problem with units<br><br>Hi Alex,<div><br></div><div>Sorry—the delays on my end are longer than yours. </div><div><br></div><div>We’ve fixed this bug, but I’m still a little unclear as to how you installed yt. </div><div><br></div><div>You’re using spyder to run the script, but I don’t think you can install yt using spyder, so you must have used “pip install yt” to install it, or maybe you installed it from source. Do you remember how you did it?</div><div><br></div><div>Also, is this Linux or Mac OS X?</div><div><br></div><div>Best,</div><div><br></div><div>John</div><div><br><div><blockquote><div>On Aug 29, 2015, at 1:28 PM, alex volioths <<a href="mailto:alex-volos@hotmail.com">alex-volos@hotmail.com</a>> wrote:</div><br class=ecxApple-interchange-newline><div><div dir=ltr style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;">Hi John,<br><br>I am sorry for the late reply.<br><br>I use spyder which   comes with  modules installed.<br><br>Thank you for your help!<br>Alex<br><br><hr>From: <a href="mailto:jzuhone@gmail.com">jzuhone@gmail.com</a><br>Date: Wed, 26 Aug 2015 17:50:44 -0400<br>To: <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>Subject: Re: [yt-users] problem with units<br><br>Alex, <div><br></div><div>My apologies—this is a bug in the code. I have a fix, which I hope to have ready by tonight or tomorrow.</div><div><div><br></div><div>Just a quick question—how did you install yt? It looks like your Python stack is in /usr/local. </div><div><br></div><div>Best,</div><div><br></div><div>John</div><div><br><div><blockquote><div>On Aug 26, 2015, at 3:26 AM, alex volioths <<a href="mailto:alex-volos@hotmail.com">alex-volos@hotmail.com</a>> wrote:</div><br class=ecxApple-interchange-newline><div><div dir=ltr style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;">Hello John<div><br></div><div>I am using spyder to run the script. Spyder is using the 1.8.2 version.</div><div><br></div><div>Cheers</div><div>Alex</div><div><br><div>From:<span class=ecxApple-converted-space> </span><a href="mailto:jzuhone@gmail.com">jzuhone@gmail.com</a><br>Date: Tue, 25 Aug 2015 09:54:31 -0400<br>To:<span class=ecxApple-converted-space> </span><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>Subject: Re: [yt-users] problem with units<br><br><div>Hi Alex,</div><div id=ecxAppleMailSignature><br></div><div id=ecxAppleMailSignature>Sorry for the trouble--I'll see if I can figure out what's gone wrong on this end.</div><div id=ecxAppleMailSignature><br></div><div id=ecxAppleMailSignature>It looks like you're running yt 3.2--can you tell me what version of NumPy you are running?</div><div id=ecxAppleMailSignature><br></div><div id=ecxAppleMailSignature>Best,</div><div id=ecxAppleMailSignature><br></div><div id=ecxAppleMailSignature>John<br><br><span style="font-size:13pt;background-color:rgba(255, 255, 255, 0);">John ZuHone</span><br><div><span style="background-color:rgba(255, 255, 255, 0);">Kavli Center for Astrophysics and Space Research<br>Massachusetts Institute of Technology<br><a target=_blank>77 Massachusetts Ave.</a>, 37-582G<br><a target=_blank>Cambridge, MA 02139</a><br>(w) <a target=_blank>617-253-2354</a><br>(m) <a target=_blank>781-708-5004</a><br><a href="mailto:jzuhone@space.mit.edu">jzuhone@space.mit.edu</a><br><a href="mailto:jzuhone@gmail.com">jzuhone@gmail.com</a><br><a href="http://www.jzuhone.com/" target=_blank>http://www.jzuhone.com</a></span><br style="font-family:UICTFontTextStyleBody;"></div></div><div><br>On Aug 25, 2015, at 9:41 AM, alex volioths <<a href="mailto:alex-volos@hotmail.com">alex-volos@hotmail.com</a>> wrote:<br><br></div><blockquote><div><div dir=ltr>Hello everyone,<div><br></div><div>I've been practicing with the example "Creating a X-ray observation from an in-memory dataset" </div><div>from here <a href="http://yt-project.org/doc/analyzing/analysis_modules/photon_simulator.html" target=_blank style="font-size:12pt;">http://yt-project.org/doc/analyzing/analysis_modules/photon_simulator.html</a> </div><div><br></div><div>However even with simple copy and paste after defining the photons I get this error message:</div><div><br></div><div><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">685</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);">runfile</span><br>execfile(filename, namespace)<br><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">78</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);">execfile</span><br>builtins.execfile(filename, *where)<br><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/home/afi/Documents/X_ray_sim/X_mock.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">75</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);"><module></span><br>exp_time, thermal_model, center="c")<br><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/usr/local/lib/python2.7/dist-packages/yt-3.2-py2.7-linux-x86_64.egg/yt/analysis_modules/photon_simulator/photon_simulator.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">330</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);">from_scratch</span><br>photons = photon_model(data_source, parameters)<br><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/usr/local/lib/python2.7/dist-packages/yt-3.2-py2.7-linux-x86_64.egg/yt/analysis_modules/photon_simulator/photon_models.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">140</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);">__call__</span><br>kT_bins = np.linspace(kT_min, max(my_kT_max, kT_max), num=n_kT+1)<br><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/usr/lib/python2.7/dist-packages/numpy/core/function_base.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">87</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);">linspace</span><br>step = (stop-start)/float((num-1))<br><br><br>File<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">"/usr/local/lib/python2.7/dist-packages/yt-3.2-py2.7-linux-x86_64.egg/yt/units/yt_array.py"</span>, line<span class=ecxApple-converted-space> </span><span style="color:rgb(0, 100, 0);">745</span>, in<span class=ecxApple-converted-space> </span><span style="color:rgb(148, 0, 211);">__sub__</span><br>ro = sanitize_units_add(self, right_object, "subtraction")<br><br><br><span style="color:rgb(70, 130, 180);">File<span class=ecxApple-converted-space> </span></span><span style="color:rgb(0, 100, 0);">"/usr/local/lib/python2.7/dist-packages/yt-3.2-py2.7-linux-x86_64.egg/yt/units/yt_array.py"</span><span style="color:rgb(70, 130, 180);">, line<span class=ecxApple-converted-space> </span></span><span style="color:rgb(0, 100, 0);">134</span><span style="color:rgb(70, 130, 180);">, in<span class=ecxApple-converted-space> </span></span><span style="color:rgb(148, 0, 211);">sanitize_units_add</span><br><span style="color:rgb(139, 0, 0);">raise YTUnitOperationError(op_string, inp.units, dimensionless)</span><br><br><br><span style="color:rgb(139, 0, 0);">YTUnitOperationError:</span><span class=ecxApple-converted-space> </span>The subtraction operator for YTArrays with units (keV) and (1) is not well defined.<br><br><br>Any ideas? I am new to yt and i can't see something wrong.<br><br><br>Thnak you<br>Alex<br></div><h2 style="box-sizing:border-box;font-family:Raleway, 'Helvetica Neue', Helvetica, Arial, sans-serif;line-height:1.1;color:rgb(51, 51, 51);font-size:34px;height:45px;visibility:hidden;background-color:rgb(255, 255, 255);"></h2><h2 style="box-sizing:border-box;font-family:Raleway, 'Helvetica Neue', Helvetica, Arial, sans-serif;line-height:1.1;color:rgb(51, 51, 51);font-size:34px;height:45px;visibility:hidden;background-color:rgb(255, 255, 255);"></h2></div></div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>yt-users mailing list</span><br><span><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a></span><br><span><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target=_blank>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></span><br></div></blockquote><br>_______________________________________________ yt-users mailing list<span class=ecxApple-converted-space> </span><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><span class=ecxApple-converted-space> </span><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target=_blank>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div></div></div><span style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline !important;">_______________________________________________</span><br style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><span style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline !important;">yt-users mailing list</span><br style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><a href="mailto:yt-users@lists.spacepope.org" style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;">yt-users@lists.spacepope.org</a><br style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target=_blank style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div></blockquote></div><br></div></div><br>_______________________________________________ yt-users mailing list<span class=ecxApple-converted-space> </span><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><span class=ecxApple-converted-space> </span><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target=_blank>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div><span style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline !important;">_______________________________________________</span><br style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><span style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline !important;">yt-users mailing list</span><br style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><a href="mailto:yt-users@lists.spacepope.org" style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;">yt-users@lists.spacepope.org</a><br style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" style="font-family:Calibri;font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;" target=_blank>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div></blockquote></div><br></div><br>_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org                                        </div></body>
</html>