From f09adea946ddecf2f31cca8477a6e67ca636fba3 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Tue, 26 Feb 2019 12:45:51 -0600 Subject: [PATCH] check derived_field_list for base fields --- yt_astro_analysis/halo_analysis/halo_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_astro_analysis/halo_analysis/halo_catalog.py b/yt_astro_analysis/halo_analysis/halo_catalog.py index 68dcc5d0..061a01ed 100644 --- a/yt_astro_analysis/halo_analysis/halo_catalog.py +++ b/yt_astro_analysis/halo_analysis/halo_catalog.py @@ -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