PARTICLE_AGE NOT DEFINED FOR RAMSES DATA
![](https://secure.gravatar.com/avatar/6f5e4f5780e776b64c07ad4be68caebd.jpg?s=120&d=mm&r=g)
Hi, I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
def formed_star(pfilter, data):
filter = data["all", "particle_age"] < 0
return filter
add_particle_filter("formed_star", function=formed_star, filtered_type='all',
requires=["particle_age"])
However, I encounter an error:
the fields
('all', 'particle_age'),
required by the "formed_star" particle filter, are not defined for this dataset.
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
![](https://secure.gravatar.com/avatar/7857f26c1ef2e9bdbfa843f9087710f7.jpg?s=120&d=mm&r=g)
Hi, Just a head's up, the gmail account you used to contact the mailing list isn't subscribed so I had to manually let it through. It may be the case that your dataset doesn't have the particle_age field defined, I think only a subset of RAMSES datasets have it defined. Can you tell us what ds.field_list is? Can you also tell us what yt version you are using? -Nathan On Sat, Mar 10, 2018 at 5:16 AM, Samhitha Vadlamani < vadlamani.bits@gmail.com> wrote:
Hi,
I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
def formed_star(pfilter, data):
filter = data["all", "particle_age"] < 0
return filter
add_particle_filter("formed_star", function=formed_star, filtered_type='all',
requires=["particle_age"])
However, I encounter an error:
the fields
('all', 'particle_age'),
required by the "formed_star" particle filter, are not defined for this dataset.
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
![](https://secure.gravatar.com/avatar/85567c2e0f97463528a421bacb378b69.jpg?s=120&d=mm&r=g)
ds.field_list:
('all', 'particle_extra_field_1')
('all', 'particle_extra_field_2')
('all', 'particle_extra_field_3')
('all', 'particle_extra_field_4')
('all', 'particle_extra_field_5')
('all', 'particle_identifier')
('all', 'particle_mass')
('all', 'particle_position_x')
('all', 'particle_position_y')
('all', 'particle_position_z')
('all', 'particle_refinement_level')
('all', 'particle_velocity_x')
('all', 'particle_velocity_y')
('all', 'particle_velocity_z')
('io', 'particle_extra_field_1')
('io', 'particle_extra_field_2')
('io', 'particle_extra_field_3')
('io', 'particle_extra_field_4')
('io', 'particle_extra_field_5')
('io', 'particle_identifier')
('io', 'particle_mass')
('io', 'particle_position_x')
('io', 'particle_position_y')
('io', 'particle_position_z')
('io', 'particle_refinement_level')
('io', 'particle_velocity_x')
('io', 'particle_velocity_y')
('io', 'particle_velocity_z')
('ramses', 'Density')
('ramses', 'Metallicity')
('ramses', 'Pressure')
('ramses', 'var6')
('ramses', 'x-velocity')
('ramses', 'y-velocity')
('ramses', 'z-velocity')
version:
Version = 3.5.dev0
On Sat, Mar 10, 2018 at 3:50 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi,
Just a head's up, the gmail account you used to contact the mailing list isn't subscribed so I had to manually let it through.
It may be the case that your dataset doesn't have the particle_age field defined, I think only a subset of RAMSES datasets have it defined.
Can you tell us what ds.field_list is? Can you also tell us what yt version you are using?
-Nathan
On Sat, Mar 10, 2018 at 5:16 AM, Samhitha Vadlamani < vadlamani.bits@gmail.com> wrote:
Hi,
I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
def formed_star(pfilter, data):
filter = data["all", "particle_age"] < 0
return filter
add_particle_filter("formed_star", function=formed_star, filtered_type='all',
requires=["particle_age"])
However, I encounter an error:
the fields
('all', 'particle_age'),
required by the "formed_star" particle filter, are not defined for this dataset.
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
![](https://secure.gravatar.com/avatar/7857f26c1ef2e9bdbfa843f9087710f7.jpg?s=120&d=mm&r=g)
On Sat, Mar 10, 2018 at 1:44 PM Vadlamani Samhitha < vadlamani.samhitha@gmail.com> wrote:
ds.field_list:
('all', 'particle_extra_field_1')
('all', 'particle_extra_field_2')
('all', 'particle_extra_field_3')
('all', 'particle_extra_field_4')
('all', 'particle_extra_field_5')
If I had to guess, particle_age is one of these. ('all', 'particle_identifier')
('all', 'particle_mass')
('all', 'particle_position_x')
('all', 'particle_position_y')
('all', 'particle_position_z')
('all', 'particle_refinement_level')
('all', 'particle_velocity_x')
('all', 'particle_velocity_y')
('all', 'particle_velocity_z')
('io', 'particle_extra_field_1')
('io', 'particle_extra_field_2')
('io', 'particle_extra_field_3')
('io', 'particle_extra_field_4')
('io', 'particle_extra_field_5')
('io', 'particle_identifier')
('io', 'particle_mass')
('io', 'particle_position_x')
('io', 'particle_position_y')
('io', 'particle_position_z')
('io', 'particle_refinement_level')
('io', 'particle_velocity_x')
('io', 'particle_velocity_y')
('io', 'particle_velocity_z')
('ramses', 'Density')
('ramses', 'Metallicity')
('ramses', 'Pressure')
('ramses', 'var6')
('ramses', 'x-velocity')
('ramses', 'y-velocity')
('ramses', 'z-velocity')
version:
Version = 3.5.dev0
This means you built yt from source. Do you know what changeset hash you used?
On Sat, Mar 10, 2018 at 3:50 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi,
Just a head's up, the gmail account you used to contact the mailing list isn't subscribed so I had to manually let it through.
It may be the case that your dataset doesn't have the particle_age field defined, I think only a subset of RAMSES datasets have it defined.
Can you tell us what ds.field_list is? Can you also tell us what yt version you are using?
-Nathan
On Sat, Mar 10, 2018 at 5:16 AM, Samhitha Vadlamani < vadlamani.bits@gmail.com> wrote:
Hi,
I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
def formed_star(pfilter, data):
filter = data["all", "particle_age"] < 0
return filter
add_particle_filter("formed_star", function=formed_star, filtered_type='all',
requires=["particle_age"])
However, I encounter an error:
the fields
('all', 'particle_age'),
required by the "formed_star" particle filter, are not defined for this dataset.
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
![](https://secure.gravatar.com/avatar/85567c2e0f97463528a421bacb378b69.jpg?s=120&d=mm&r=g)
I see. One possible check I could do is to find out the units for these fields and hope for only one of them to have time units. Is there anything else I could do to confirm the field? I’m not really sure of what a change set hash is or if I could find out at this point? Would updating yt help in any way? On Sat, 10 Mar 2018 at 9:10 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
On Sat, Mar 10, 2018 at 1:44 PM Vadlamani Samhitha < vadlamani.samhitha@gmail.com> wrote:
ds.field_list:
('all', 'particle_extra_field_1')
('all', 'particle_extra_field_2')
('all', 'particle_extra_field_3')
('all', 'particle_extra_field_4')
('all', 'particle_extra_field_5')
If I had to guess, particle_age is one of these.
('all', 'particle_identifier')
('all', 'particle_mass')
('all', 'particle_position_x')
('all', 'particle_position_y')
('all', 'particle_position_z')
('all', 'particle_refinement_level')
('all', 'particle_velocity_x')
('all', 'particle_velocity_y')
('all', 'particle_velocity_z')
('io', 'particle_extra_field_1')
('io', 'particle_extra_field_2')
('io', 'particle_extra_field_3')
('io', 'particle_extra_field_4')
('io', 'particle_extra_field_5')
('io', 'particle_identifier')
('io', 'particle_mass')
('io', 'particle_position_x')
('io', 'particle_position_y')
('io', 'particle_position_z')
('io', 'particle_refinement_level')
('io', 'particle_velocity_x')
('io', 'particle_velocity_y')
('io', 'particle_velocity_z')
('ramses', 'Density')
('ramses', 'Metallicity')
('ramses', 'Pressure')
('ramses', 'var6')
('ramses', 'x-velocity')
('ramses', 'y-velocity')
('ramses', 'z-velocity')
version:
Version = 3.5.dev0
This means you built yt from source. Do you know what changeset hash you used?
On Sat, Mar 10, 2018 at 3:50 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi,
Just a head's up, the gmail account you used to contact the mailing list isn't subscribed so I had to manually let it through.
It may be the case that your dataset doesn't have the particle_age field defined, I think only a subset of RAMSES datasets have it defined.
Can you tell us what ds.field_list is? Can you also tell us what yt version you are using?
-Nathan
On Sat, Mar 10, 2018 at 5:16 AM, Samhitha Vadlamani < vadlamani.bits@gmail.com> wrote:
Hi,
I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
def formed_star(pfilter, data):
filter = data["all", "particle_age"] < 0
return filter
add_particle_filter("formed_star", function=formed_star, filtered_type='all',
requires=["particle_age"])
However, I encounter an error:
the fields
('all', 'particle_age'),
required by the "formed_star" particle filter, are not defined for this dataset.
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
![](https://secure.gravatar.com/avatar/7857f26c1ef2e9bdbfa843f9087710f7.jpg?s=120&d=mm&r=g)
I’m sorry but I’m not familiar enough with the RAMSES output format to be able to confidently answer your questions. I’ve pinged Corentin Cadiou, who has been doing a lot of work recently to improve the RAMSES frontend in yt, hopefully he’ll have a better idea. The changeset hash is a way of identifying precisely which version of yt you have installed from the git repository. If you don’t know what that is that’s ok, I was just curious if you happened to have an old version installed. It’s possible installing the latest development version of yt might help things if you originally installed a version from last Fall, although if you installed yt recently you probably have a version reflecting the latest state of the RAMSES frontend. On Sat, Mar 10, 2018 at 2:44 PM Vadlamani Samhitha < vadlamani.samhitha@gmail.com> wrote:
I see. One possible check I could do is to find out the units for these fields and hope for only one of them to have time units. Is there anything else I could do to confirm the field? I’m not really sure of what a change set hash is or if I could find out at this point? Would updating yt help in any way?
On Sat, 10 Mar 2018 at 9:10 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
On Sat, Mar 10, 2018 at 1:44 PM Vadlamani Samhitha < vadlamani.samhitha@gmail.com> wrote:
ds.field_list:
('all', 'particle_extra_field_1')
('all', 'particle_extra_field_2')
('all', 'particle_extra_field_3')
('all', 'particle_extra_field_4')
('all', 'particle_extra_field_5')
If I had to guess, particle_age is one of these.
('all', 'particle_identifier')
('all', 'particle_mass')
('all', 'particle_position_x')
('all', 'particle_position_y')
('all', 'particle_position_z')
('all', 'particle_refinement_level')
('all', 'particle_velocity_x')
('all', 'particle_velocity_y')
('all', 'particle_velocity_z')
('io', 'particle_extra_field_1')
('io', 'particle_extra_field_2')
('io', 'particle_extra_field_3')
('io', 'particle_extra_field_4')
('io', 'particle_extra_field_5')
('io', 'particle_identifier')
('io', 'particle_mass')
('io', 'particle_position_x')
('io', 'particle_position_y')
('io', 'particle_position_z')
('io', 'particle_refinement_level')
('io', 'particle_velocity_x')
('io', 'particle_velocity_y')
('io', 'particle_velocity_z')
('ramses', 'Density')
('ramses', 'Metallicity')
('ramses', 'Pressure')
('ramses', 'var6')
('ramses', 'x-velocity')
('ramses', 'y-velocity')
('ramses', 'z-velocity')
version:
Version = 3.5.dev0
This means you built yt from source. Do you know what changeset hash you used?
On Sat, Mar 10, 2018 at 3:50 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi,
Just a head's up, the gmail account you used to contact the mailing list isn't subscribed so I had to manually let it through.
It may be the case that your dataset doesn't have the particle_age field defined, I think only a subset of RAMSES datasets have it defined.
Can you tell us what ds.field_list is? Can you also tell us what yt version you are using?
-Nathan
On Sat, Mar 10, 2018 at 5:16 AM, Samhitha Vadlamani < vadlamani.bits@gmail.com> wrote:
Hi,
I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
def formed_star(pfilter, data):
filter = data["all", "particle_age"] < 0
return filter
> add_particle_filter("formed_star", function=formed_star, > filtered_type='all',
requires=["particle_age"])
However, I encounter an error:
the fields
('all', 'particle_age'),
required by the "formed_star" particle filter, are not defined for this dataset.
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
![](https://secure.gravatar.com/avatar/85567c2e0f97463528a421bacb378b69.jpg?s=120&d=mm&r=g)
Thank you for your efforts. I looked at those "extra" fields and none of them corresponds to time: they're all dimensionless. On Sat, Mar 10, 2018 at 10:32 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
I’m sorry but I’m not familiar enough with the RAMSES output format to be able to confidently answer your questions.
I’ve pinged Corentin Cadiou, who has been doing a lot of work recently to improve the RAMSES frontend in yt, hopefully he’ll have a better idea.
The changeset hash is a way of identifying precisely which version of yt you have installed from the git repository. If you don’t know what that is that’s ok, I was just curious if you happened to have an old version installed. It’s possible installing the latest development version of yt might help things if you originally installed a version from last Fall, although if you installed yt recently you probably have a version reflecting the latest state of the RAMSES frontend.
On Sat, Mar 10, 2018 at 2:44 PM Vadlamani Samhitha < vadlamani.samhitha@gmail.com> wrote:
I see. One possible check I could do is to find out the units for these fields and hope for only one of them to have time units. Is there anything else I could do to confirm the field? I’m not really sure of what a change set hash is or if I could find out at this point? Would updating yt help in any way?
On Sat, 10 Mar 2018 at 9:10 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
On Sat, Mar 10, 2018 at 1:44 PM Vadlamani Samhitha < vadlamani.samhitha@gmail.com> wrote:
ds.field_list:
('all', 'particle_extra_field_1')
('all', 'particle_extra_field_2')
('all', 'particle_extra_field_3')
('all', 'particle_extra_field_4')
('all', 'particle_extra_field_5')
If I had to guess, particle_age is one of these.
('all', 'particle_identifier')
('all', 'particle_mass')
('all', 'particle_position_x')
('all', 'particle_position_y')
('all', 'particle_position_z')
('all', 'particle_refinement_level')
('all', 'particle_velocity_x')
('all', 'particle_velocity_y')
('all', 'particle_velocity_z')
('io', 'particle_extra_field_1')
('io', 'particle_extra_field_2')
('io', 'particle_extra_field_3')
('io', 'particle_extra_field_4')
('io', 'particle_extra_field_5')
('io', 'particle_identifier')
('io', 'particle_mass')
('io', 'particle_position_x')
('io', 'particle_position_y')
('io', 'particle_position_z')
('io', 'particle_refinement_level')
('io', 'particle_velocity_x')
('io', 'particle_velocity_y')
('io', 'particle_velocity_z')
('ramses', 'Density')
('ramses', 'Metallicity')
('ramses', 'Pressure')
('ramses', 'var6')
('ramses', 'x-velocity')
('ramses', 'y-velocity')
('ramses', 'z-velocity')
version:
Version = 3.5.dev0
This means you built yt from source. Do you know what changeset hash you used?
On Sat, Mar 10, 2018 at 3:50 PM, Nathan Goldbaum <nathan12343@gmail.com
wrote:
Hi,
Just a head's up, the gmail account you used to contact the mailing list isn't subscribed so I had to manually let it through.
It may be the case that your dataset doesn't have the particle_age field defined, I think only a subset of RAMSES datasets have it defined.
Can you tell us what ds.field_list is? Can you also tell us what yt version you are using?
-Nathan
On Sat, Mar 10, 2018 at 5:16 AM, Samhitha Vadlamani < vadlamani.bits@gmail.com> wrote:
Hi,
I've recently started working with yt and am trying to extract "particle_age" for newly formed stars in my simulation:
> def formed_star(pfilter, data): > > filter = data["all", "particle_age"] < 0 > > return filter > > >> add_particle_filter("formed_star", function=formed_star, >> filtered_type='all', > > requires=["particle_age"]) > > However, I encounter an error:
> the fields > > ('all', 'particle_age'), > > required by the "formed_star" particle filter, are not defined for > this dataset. >
Could anyone please recommend a possible solution for why "particle_age" is not being detected for my dataset? Thanks.
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (3)
-
Nathan Goldbaum
-
Samhitha Vadlamani
-
Vadlamani Samhitha