<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;">
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Dear all,</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">I am trying to export the density distribution from a RAMSES run to RADMC-3D using RadMC3DWriter.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Whereas the example with the “StarParticle” data set works perfectly, it fails for any RAMSES data </div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">I tried (e.g. the “ramses_mhd_amr” one).</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Below is the output, complaining about a missing attribute in the RAMSES frontend.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">I am not a yt expert, any help with how to fix this would be appreciated.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Thanks a lot.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Best wishes,</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">Marc</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<div style="margin: 0px;">>>> writer = RadMC3DWriter(ds)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,236 Loading field plugins.</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,237 Loaded angular_momentum (8 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,237 Loaded astro (15 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,237 Loaded cosmology (22 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,238 Loaded fluid (63 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,238 Loaded fluid_vector (95 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded geometric (111 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded local (111 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded magnetic_field (119 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded my_plugins (119 new fields)</div>
<div style="margin: 0px;">yt : [INFO     ] 2015-10-05 14:20:04,239 Loaded species (121 new fields)</div>
<div style="margin: 0px;">Traceback (most recent call last):</div>
<div style="margin: 0px;">  File "<stdin>", line 1, in <module></div>
<div style="margin: 0px;">  File "/lustre/projects/p054_swin/marc/galnuc_ramses/yt/yt-x86_64/src/yt-hg/yt/analysis_modules/radmc3d_export/RadMC3DInterface.py", line 148, in __init__</div>
<div style="margin: 0px;">    sorted_grids = sorted(ds.index.grids, key=lambda x: x.Level)</div>
<div style="margin: 0px;">AttributeError: 'RAMSESIndex' object has no attribute 'grids'</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</body>
</html>