<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Matt,<div><br></div><div>yt version 3.0.1 indeed solved this issue for me, that’s great thank you very much!</div><div><br></div><div>Antoine</div><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Antoine STRUGAREK</div>-------------------------------------------------------------------<br><a href="https://googledrive.com/host/0BxBaqwiaesNkcDBWcUFCdmMxSUU/strugarek.html">Webpage</a> <br><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Département de physique, Université de Montréal<br><a href="mailto:strugarek@astro.umontreal.ca">strugarek@astro.umontreal.ca</a><br>(+1) 514 343 7077<br>--------------------------------------------------------------------<br>DSM/IRFU/SAp/LDEE CEA Saclay<br>DSM/IRFM/SCCP CEA Cadarache<br>antoine.strugarek@cea.fr<br>--------------------------------------------------------------------<br><br><br><br><br><br><br></div></div></div></div></div></div></div>
</div>
<br><div><div>Le 2014-09-03 à 14:41 , Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Antoine,<br><br>This should be fixed in the release put up last night, 3.0.1.  Britton<br>Smith tracked this down and fixed it.  Apologies for the issue.<br><br>-Matt<br><br>On Wed, Sep 3, 2014 at 1:40 PM, Antoine Strugarek<br><<a href="mailto:strugarek@astro.umontreal.ca">strugarek@astro.umontreal.ca</a>> wrote:<br><blockquote type="cite">Thank for your answers, it confirms what I understood.<br><br>After digging a bit deeper in the Python and Cython codes, I think I may<br>have found another bug that adds up to the problem with ‘_set_center' I was<br>mentioning before. In ‘geometric_fields.py’, when computing the geometric<br>fields (take _cylindrical_r for instance, but it true for other fields as<br>well), the center from the field_parameters dictionary is subtracted from<br>the coords. Though, it appears that the coords are obtained from the<br>obtain_rvec function defined in geometry_utils.pyx, and in there the center<br>(from the field_parameters dictionary as well) is already subtracted. The<br>center is hence subtracted twice, which leads to weird behaviours when using<br>those geometrical fields. Please advise on what would be the best way to<br>cope with this issue, in order to use the already defined geometrical fields<br>(cylindrical and spherical).<br><br>Antoine<br><br><br>Le 2014-09-03 à 13:07 , Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> a écrit :<br><br><br><br>On Wed, Sep 3, 2014 at 10:05 AM, Chris Malone <<a href="mailto:chris.m.malone@gmail.com">chris.m.malone@gmail.com</a>><br>wrote:<br><blockquote type="cite"><br>Hi Antoine,<br><br>As you hinted, the field_parameters dictionary is mainly used for derived<br>fields and defaults to the center of the domain.  For a SlicePlot (and<br>others), the keyword variable 'center' is actually what determines where in<br>the domain the slice should be taken - it is completely independent of the<br>field_parameters['center'] value.<br></blockquote><br><br>You can also adjust the plot center using the set_center function that hangs<br>off of SlicePlot instances.<br><br><blockquote type="cite"><br><br>Hope that helps.<br><br>Chris<br><br><br>On Wed, Sep 3, 2014 at 10:45 AM, Antoine Strugarek<br><<a href="mailto:strugarek@astro.umontreal.ca">strugarek@astro.umontreal.ca</a>> wrote:<br><blockquote type="cite"><br>Hi Matthew,<br><br>Thank you for the quick answer. I’m on 3.0 (obtained with<br>yt.__version__).<br><br>I’m not completely sure how to fix this since I’m discovering the code,<br>but I’m suspecting something strange there. To my understanding, the<br>field_parameters dictionary given in argument to SlicePlot should be used<br>for derived fields only, and the center keyword to specify the location<br>where the Slice should be taken, right?<br>Also, if I specify in advance the center (doing ad = ds.all_data() ;<br>ad.set_field_parameter("center", custom_center)), this new center does not<br>seem to be used in the SlicePlot to compute, e.g., the cylindrical radius<br>(in this latter case I try to do a SlicePlot without giving a<br>field_parameters dictionary in argument).<br><br>Antoine<br><br><br>Le 2014-09-03 à 12:27 , Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> a écrit :<br><br><blockquote type="cite">Hi Antoine,<br><br>Thanks for reporting this!  Which version of the code are you on?  "yt<br>instinfo" should be able to tell you this.<br><br>-Matt<br><br>On Wed, Sep 3, 2014 at 11:08 AM, Antoine Strugarek<br><<a href="mailto:strugarek@astro.umontreal.ca">strugarek@astro.umontreal.ca</a>> wrote:<br><blockquote type="cite">Hi,<br><br>I’ve been trying to specify by hand the ‘center’ entry of the<br>dictionary field_parameters to a SlicePlot so that the derived field can<br>make use of another center to compute, e.g., cylindrical coordinates. After<br>tracking why my specified center had no effect, I noticed that the function<br>_set_center is called when a SlicePlot is created, and this function erases<br>any ‘center’ entry in the field_parameters dictionary, putting there the<br>‘center’ keyword specified as an argument to SlicePlot. It appears to me<br>this should not be the normal behaviour, but I may be misunderstanding<br>something. I would naively suggest not to update the ‘field_parameters’<br>dictionary in the _set_center function, though I’m not completely sure?<br><br>Thanks in advance for your help and suggestion about this issue!<br><br>Antoine<br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote><br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote><br><br><br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br></blockquote><br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br><br><br>_______________________________________________<br>yt-users mailing list<br>yt-users@lists.spacepope.org<br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br></blockquote>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote></div><br></div></body></html>