Skip to content

Commit

Permalink
Merge pull request #43 from ngoldbaum/ahf-fix
Browse files Browse the repository at this point in the history
check derived_field_list for base fields
  • Loading branch information
brittonsmith authored Feb 26, 2019
2 parents 737272d + f09adea commit c9f9608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_astro_analysis/halo_analysis/halo_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def add_default_quantities(self, field_type='halos'):
"particle_position_x", "particle_position_y",
"particle_position_z", "virial_radius"]:
field_name = (field_type, field)
if field_name not in self.halos_ds.field_list:
if field_name not in self.halos_ds.derived_field_list:
mylog.warn("Halo dataset %s has no field %s." %
(self.halos_ds, str(field_name)))
continue
Expand Down

0 comments on commit c9f9608

Please sign in to comment.