
Hi all, I am getting the error below on an enzo dataset. I am using a completely fresh install of yt using the development branch. I've tried deleting .yt files and clearing out my ~/.yt directory. Nothing works. Does anyone have any ideas? Thanks! Traceback (most recent call last): File "projections.py", line 9, in <module> pf = load("DD%04d/data%04d" % (this,this)) File "/home/stsk4691/yt/src/yt-hg/yt/convenience.py", line 91, in load return output_type_registry[candidates[0]](*args, **kwargs) File "/home/stsk4691/yt/src/yt-hg/yt/frontends/enzo/data_structures.py", line 660, in __init__ StaticOutput.__init__(self, filename, data_style, file_style=file_style) File "/home/stsk4691/yt/src/yt-hg/yt/data_objects/static_output.py", line 86, in __init__ self._parse_parameter_file() File "/home/stsk4691/yt/src/yt-hg/yt/frontends/enzo/data_structures.py", line 786, in _parse_parameter_file vals = pcast(vals[0]) ValueError: invalid literal for int() with base 10: 'inf' -- Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice)

Hi Stephen, I've run into this problem before. One of the parameters (probably SimpleQ) has "inf" as the value. As a workaround, I manually changed this to 0.0 in the parameter file because it's not used in the run I was doing. I fixed this bug yesterday in Enzo's week-of-code, but I didn't do anything to the yt codebase. Cheers, John On 09/09/2011 01:13 PM, Stephen Skory wrote:
Hi all,
I am getting the error below on an enzo dataset. I am using a completely fresh install of yt using the development branch. I've tried deleting .yt files and clearing out my ~/.yt directory. Nothing works. Does anyone have any ideas? Thanks!
Traceback (most recent call last): File "projections.py", line 9, in<module> pf = load("DD%04d/data%04d" % (this,this)) File "/home/stsk4691/yt/src/yt-hg/yt/convenience.py", line 91, in load return output_type_registry[candidates[0]](*args, **kwargs) File "/home/stsk4691/yt/src/yt-hg/yt/frontends/enzo/data_structures.py", line 660, in __init__ StaticOutput.__init__(self, filename, data_style, file_style=file_style) File "/home/stsk4691/yt/src/yt-hg/yt/data_objects/static_output.py", line 86, in __init__ self._parse_parameter_file() File "/home/stsk4691/yt/src/yt-hg/yt/frontends/enzo/data_structures.py", line 786, in _parse_parameter_file vals = pcast(vals[0]) ValueError: invalid literal for int() with base 10: 'inf'
-- John Wise Assistant Professor of Physics Center for Relativistic Astrophysics, Georgia Tech

John,
I've run into this problem before. One of the parameters (probably SimpleQ) has "inf" as the value. As a workaround, I manually changed this to 0.0 in the parameter file because it's not used in the run I was doing.
Yup, it is my SimpleQ that is not making things simple for me. I'll see about doing the same. -- Stephen Skory s@skory.us http://stephenskory.com/ 510.621.3687 (google voice)
participants (2)
-
John Wise
-
Stephen Skory