Issue #1252: Passing clump data source to YTSurface (yt_analysis/yt)
New issue 1252: Passing clump data source to YTSurface https://bitbucket.org/yt_analysis/yt/issues/1252/passing-clump-data-source-t... John Regan: When passing a clump object to the YTSurface operator I get the error: AttributeError: 'Clump' object has no attribute 'get_field_parameter' The script to reproduce this error is here and I was using the IsolatedGalaxy dataset - the one with the potential output included. http://paste.yt-project.org/show/6724/ I can by-pass this error by slightly modifying the YTSurface api to allow a center point to be passed in, this should probably be the point of maximum density within the clump. So surf = clump.data.ds.surface(clump, "density", 1e-24, center=center) but this leads to the next issue Traceback (most recent call last): File "clump_surfing.py", line 33, in <module> triangles = surf.triangles File "/cosma/home/dp004/dc-rega4/YT/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 1223, in triangles self.get_data() File "/cosma/home/dp004/dc-rega4/YT/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 1108, in get_data for io_chunk in parallel_objects(self.data_source.chunks([], "io")): AttributeError: 'Clump' object has no attribute 'chunks' Responsible: MatthewTurk
participants (1)
-
John Regan