YT dies after second attempt to run script
Dear Everybody, my name is Francia and I am new working with YT. I have Enzo data and I was able to run a basic example of YT. I succeeded to get result in my first attempt. However, the same command now gives me and error and I am unable to find the solution. I am wondering if somebody has gotten this same error. Mac OS X V 10.7.4 Python 2.7.2 (default, Jul 30 2012, 17:08:59) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin This is the script I am running: ----- import sys from yt.mods import * # set up our namespace from pkg_resources import load_entry_point import yt.frontends.enzo.api yt.frontends.enzo.api.EnzoHierarchy._bn = "%s.grid.cpu%%04i" from yt.analysis_modules.halo_finding.api import * fn = "/Users/friesco/astro/redshift0058/redshift0058" pf = load(fn) # load data halos = HaloFinder(pf) halos.write_out("/Users/friesco/astro/halo_output.out") --- I got this results yt : [INFO ] 2012-07-26 17:45:45,860 Parameters: current_time = 636.417235913 yt : [INFO ] 2012-07-26 17:45:45,860 Parameters: domain_dimensions = [128 128 128] yt : [INFO ] 2012-07-26 17:45:45,860 Parameters: domain_left_edge = [ 0. 0. 0.] yt : [INFO ] 2012-07-26 17:45:45,860 Parameters: domain_right_edge = [ 1. 1. 1.] yt : [INFO ] 2012-07-26 17:45:45,861 Parameters: cosmological_simulation = 1 yt : [INFO ] 2012-07-26 17:45:45,861 Parameters: current_redshift = -2.5139174098e-07 yt : [INFO ] 2012-07-26 17:45:45,861 Parameters: omega_lambda = 0.721 yt : [INFO ] 2012-07-26 17:45:45,861 Parameters: omega_matter = 0.279 yt : [INFO ] 2012-07-26 17:45:45,861 Parameters: hubble_constant = 0.7 yt : [INFO ] 2012-07-26 17:45:45,865 Getting creation_time using ParticleIO yt : [INFO ] 2012-07-26 17:49:00,341 Getting field creation_time from 29485 yt : [INFO ] 2012-07-26 17:50:35,384 Getting ParticleMassMsun using ParticleIO yt : [INFO ] 2012-07-26 17:53:29,555 Getting field ParticleMassMsun from 29485 yt : [INFO ] 2012-07-26 17:53:39,376 Initializing HOP yt : [INFO ] 2012-07-26 17:53:39,447 Getting particle_position_x using ParticleIO yt : [INFO ] 2012-07-26 17:57:03,605 Getting field particle_position_x from 29485 yt : [INFO ] 2012-07-26 17:59:50,822 Getting particle_position_y using ParticleIO yt : [INFO ] 2012-07-26 18:07:23,564 Getting field particle_position_y from 29485 yt : [INFO ] 2012-07-26 18:10:24,062 Getting particle_position_z using ParticleIO yt : [INFO ] 2012-07-26 18:13:54,161 Getting field particle_position_z from 29485 Copying arrays for 44247253 particles Calling hop... 44247253 1.600e+02 nSmooth = 65 kd->nActive = 44247253 Building Tree... Finding Densities... Finding Densest Neighbors... Grouping... Merging Groups... Writing Output... However, when I try to run this same script now I get this Yt : [INFO ] 2012-07-30 17:45:26,874 Parameters: current_time = 636.417235913 yt : [INFO ] 2012-07-30 17:45:26,874 Parameters: domain_dimensions = [128 128 128] yt : [INFO ] 2012-07-30 17:45:26,874 Parameters: domain_left_edge = [ 0. 0. 0.] yt : [INFO ] 2012-07-30 17:45:26,874 Parameters: domain_right_edge = [ 1. 1. 1.] yt : [INFO ] 2012-07-30 17:45:26,875 Parameters: cosmological_simulation = 1 yt : [INFO ] 2012-07-30 17:45:26,875 Parameters: current_redshift = -2.5139174098e-07 yt : [INFO ] 2012-07-30 17:45:26,875 Parameters: omega_lambda = 0.721 yt : [INFO ] 2012-07-30 17:45:26,875 Parameters: omega_matter = 0.279 yt : [INFO ] 2012-07-30 17:45:26,875 Parameters: hubble_constant = 0.7
yt : [INFO ] 2012-07-30 17:45:26,880 Getting the binary hierarchy yt : [INFO ] 2012-07-30 17:45:27,141 Finished with binary hierarchy reading yt : [INFO ] 2012-07-30 17:45:27,919 Getting creation_time using ParticleIO Segmentation fault: 11
Does anybody have a suggestion? PS: very nice to meet you! ^_^ -- Francia F.R.
Hi Francia, can you try seeing if there is a redshift0058.yt file? If there is, try deleting it and re-running the script. If that doesn't fix it, we'll try something else, but that often fixes odd errors like this. -- Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice)
participants (2)
-
Francia F. Riesco
-
Stephen Skory