
Hi Matthew,
I've modified the code so that the surface method is performed on a clump object:
clump = Clump(sphere, ('gas', 'density')) surf = ds.surface(clump, ('gas', 'density'), thresh) ratio = (surf.volume() / surf.surface_area).in_units('pc')
But now I'm getting the error:
File "my_analysis.py", line 108, in contours surf = ds.surface(clump, ('gas', 'density'), thresh) File "/home/brs/stack/yt/yt/data_objects/construction_data_containers.py", line 1557, in __init__ self.surface_field = data_source._determine_fields(surface_field)[0] P062 yt : [ERROR ] 2021-09-21 12:34:08,688 AttributeError: 'Clump' object has no attribute '_determine_fields'
Many thanks, Sam
PS: Apologies if this got sent twice, I believe there was an error in sending the first message
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.