Hi all,<br><br>I am trying to compute specific angular momentum using YT. I am getting the following error. It is already in derived fields list but does not work. Am i doing some thing wrong here? Any ideas what is going wrong here?<br>
Thanks in advance!<br>Cheers<br>Latif<br><br>pc.add_profile_sphere(150, "kpc", <br> ["Radiuspc", "SpecificAngularMomentum"], weight="CellMassMsun", accumulation=False,<br>
x_bins=64, x_log=True, x_bounds=None,lazy_reader=True,<br> id=None, figure=None, axes=None) # x, y, weight<br><br> id=None, figure=None, axes=None) # x, y, weight<br> File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.py", line 1033, in add_profile_sphere<br>
figure=figure, axes=axes)<br> File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.py", line 943, in add_profile_object<br> profile.add_fields(fields[1], weight=weight, accumulation=accumulation)<br>
File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py", line 147, in add_fields<br> self._lazy_add_fields(fields, weight, accumulation)<br> File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py", line 107, in _lazy_add_fields<br>
args=args, check_cut=True)<br> File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py", line 56, in save_state<br> tr = func(*args, **kwargs)<br> File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py", line 243, in _bin_field<br>
source_data = self._get_field(source, field, check_cut)<br> File "/home/astro73/mlatif/YT/yt-x86_64/src/yt-hg/yt/data_objects/profiles.py", line 183, in _get_field<br> data.append(source[field][pointI].ravel().astype('float64'))<br>
IndexError: index (3) out of range (0<=index<2) in dimension 0<br><br>