<div dir="ltr">Hi, <div><br></div><div>I am trying to find abundance of C contained within a sphere through the Profile1D function in yt. I tried something like this:</div><div><br></div><div><br></div><div><div><b>ds=yt.load(filename)</b></div><div><b> sp = ds.sphere("max", (10.0, 'kpc'))</b></div><div><b> profile = yt.Profile1D(sp, "x", 32, rmin, rmax, False, weight_field=None)</b></div></div><div><b><br></b></div><div><div><b> profile.add_fields(["cell_mass"])</b></div><div><b> profile.add_fields(["c12 "])</b></div><div><b> profile.add_fields(["x"])</b></div><div><b>print profile ["cell_mass"].sum()/Msun</b></div><div><b>print profile ["c12 "]*["cell_mass"].sum()/Msun</b></div></div><div><br></div><div><br></div><div>and got the following error:</div><div><br></div><div><div><b> File "profile_1D.py", line 74, in <module></b></div><div><b>    print profile ((["c12 "]*["cell_mass"]).sum())/Msun</b></div><div><b>TypeError: can't multiply sequence by non-int of type 'list'</b></div></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b>is there any way  I can calculate the C12 abundance here?</b></div><div><br></div><div><br></div><div><br></div><div><b>Best</b></div><div><b>Tazkera</b></div><div><br></div></div>