<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi YTers,<div class=""><br class=""></div><div class="">I am using my old scripts to do volume rendering with my gadget data. However with the new installed yt (3.2.1) it fails every time when I output the picture using:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">cam = ds.camera(c, [<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0.0</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">0.0</span>, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1.0</span>], ds.domain_width, <span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">1024</span>, tf, </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> fields=[<span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">"density"</span>], no_ghost=<span style="font-variant-ligatures: no-common-ligatures; color: #34bbc7" class="">False</span>)<span style="font-variant-ligatures: no-common-ligatures; color: #5330e1" class="">#, log_fields=[True])</span> </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""><br class=""></div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">####### failed from here !!!###### </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(195, 55, 32); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #29f914" class="">im = cam.snapshot(</span>"../results/NOSN_NOZCOOL_L010N0256/rendering_%03d.png"<span style="font-variant-ligatures: no-common-ligatures; color: #29f914" class="">%(snapshot),clip_ratio=</span>4.0<span style="font-variant-ligatures: no-common-ligatures; color: #29f914" class="">) </span></div></div><div class=""><br class=""></div><div class="">The error is RuntimeError:</div><div class=""><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">Traceback (most recent call last): </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "yt_rendering_parallel_simple.py", line 47, in <module> </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> im = cam.snapshot("../results/NOSN_NOZCOOL_L010N0256/rendering_%03d.png"%(snapshot),clip_ratio=4.0) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 769, in snapshot </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> self.initialize_source() </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.py", line 721, in initialize$</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">source </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> <a href="http://self.no" class="">self.no</a>_ghost) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 180, in initialize_sourc$</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> self.set_fields(fields, log_fields, no_ghost) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 170, in set_fields </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> for b in self.traverse(): </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 184, in traverse </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> yield self.get_brick_data(node) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.py", line 271, in get_brick_data </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> vcd = grid.get_vertex_centered_data(field, smoothed=True, no_ghost=<a href="http://self.no" class="">self.no</a>_ghost).astype('float64') </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 280, in get_vertex_centered_data </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> cg = self.retrieve_ghost_zones(1, field, smoothed=smoothed) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.py", line 257, in retrieve_ghost_zones </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> **kwargs) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 841, in __init$</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">_ </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> YTCoveringGridBase.__init__(self, *args, **kwargs) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 517, in __init$</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">_ </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> self.get_data(fields) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 600, in get_da$</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">a </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> if len(fill) > 0: self._fill_fields(fill) </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> File "/mnt/home/yqin/programs/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 879, in _fill_$</div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">ields </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class=""> raise RuntimeError </div><div style="margin: 0px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);" class="">RuntimeError </div></div><div class=""><br class=""></div><div class="">Am I missing something updated in the new yt code? </div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Yuxiang</div><div class="">
<br class=""></div></body></html>