<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:'Times New Roman', Times, serif;" dir="ltr">
<p>Dear yt folks,</p>
<p><br>
</p>
<p>I am trying to visualize some RAMSES MHD simulation data. The simulation is for gravitationally collapsing gas looking at star formation. I'm looking to obtain projection and slice plots and then annotate the magnetic fields onto the resulting image.</p>
<p>I'm on Mac OS X 10.9.5</p>
<p>I'm using conda 4.3.18</p>
<p>My version of yt is: 3<span style="color: rgb(0, 0, 0);">.3.5-py27_0</span></p>
<p>and python 2.7.12</p>
<p><br>
</p>
<p><span style="font-size: 12pt;">All of what I believe is the relevant code:</span></p>
<p><span style="font-size: 11pt;"> <span style="font-family: "Times New Roman", Times, serif;">pf = yt.load('output_00284/info_00284.txt')</span></span></p>
<p></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-size: 10pt;"><span style="font-size: 11pt; font-family: "Times New Roman", Times, serif;"> </span><span style="font-size: 11pt; font-family: "Times New Roman", Times, serif;">sp = pf.h.sphere(part_center, (zoom_width + 0.5, "pc"))</span></span></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-family: "Times New Roman", Times, serif; font-size: 11pt;"> L = sp.quantities.angular_momentum_vector()</span><br>
</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-size: 10pt;"><span style="font-size: 11pt; font-family: "Times New Roman", Times, serif;"> p = yt.OffAxisSlicePlot(pf, L, 'density', center=part_center, width =</span><span style="font-size: 11pt; font-family: "Times New Roman", Times, serif;">(zoom_width, </span><span style="font-size: 11pt; font-family: "Times New Roman", Times, serif;">"pc"))</span></span><br>
</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-family: "Times New Roman", Times, serif; font-size: 11pt;"> p.annotate_magnetic_field()</span><br>
</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-size: 11pt; font-family: "Times New Roman", Times, serif;"> p.save('test.png')</span></p>
<p></p>
<br>
<p></p>
<p><span style="font-size: 12pt;">The error:</span></p>
<p><br>
</p>
<p></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-size: 10pt;">yt.utilities.exceptions.YTPlotCallbackError: annotate_magnetic_field callback failed with the following error: Could not find field '('all', 'magnetic_field_x')' in info_00284.</span></p>
<br>
<p></p>
<p>If I load the field list for the data set, I can see that the B field data is there, but under 'ramses', not 'all'</p>
<p></p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'x-Bfield-left'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'x-Bfield-right'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'x-velocity'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'y-Bfield-left'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'y-Bfield-right'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'y-velocity'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'z-Bfield-left'),</p>
<p style="margin: 0px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
 ('ramses', 'z-Bfield-right'),</p>
<br>
<p></p>
<p>Is there a way to pass these fields to annotate_magnetic_field? Or a manner in which I can have this information load in the field ('all', 'magnetic_field_')</p>
<p><br>
</p>
<p>I should also note that I can create and save the plots with no issues, so long as I do not try to annotate the magnetic fields.</p>
<p><br>
</p>
<div id="Signature"><span style="color: rgb(0, 0, 0);"></span>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: "Times New Roman", Times, serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<span style="color: rgb(0, 0, 0);"></span>
<div name="divtagdefaultwrapper" style="margin:0px"><span style="color: rgb(0, 0, 0);">Cheers,</span><br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif"><font face="Times New Roman, Times, serif">Daniel Murray</font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif"><font face="Times New Roman, Times, serif">Graduate student at University of Wisconsin Milwaukee<br>
</font>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>