[yt-users] error info "TypeError: unhashable type: 'list'" with FLASH check point data

Nathan Goldbaum goldbaum at ucolick.org
Sat Jul 7 21:58:29 PDT 2012


Hi Ji,

Can you let us know the output of the following command:

$ yt instinfo

Also is this for flash2.5, 3, or 4?  Is this for data produced using the unsplit solver, the 8-wave solver, or some other MHD solver?

Thanks for your help, we'll try to sort this out for you :)

Cheers,

Nathan Goldbaum
On Jul 7, 2012, at 9:50 PM, Ji Suoqing wrote:

> Hi all,
> 
> I've always been using YT to analyze FLASH data (plot file and check point file), and it works well. 
> 
> However, recently I have added magnetic field into FLASH, so the check point file contains more index: MAGX, MAGY, MAGZ, MAGP, etc. And if I use YT to deal with check point file, error will occur. Say:
> 
>>>> pf=load('merger_hdf5_chk_0000')
> yt : [WARNING  ] 2012-07-08 08:30:20,419 Setting 1.0 in code units to be 1.0 cm
> yt : [WARNING  ] 2012-07-08 08:30:20,419 No time units.  Setting 1.0 = 1 second.
> yt : [INFO     ] 2012-07-08 08:30:20,419 Parameters: current_time              = 0.0
> yt : [INFO     ] 2012-07-08 08:30:20,419 Parameters: domain_dimensions         = [64 64  4]
> yt : [INFO     ] 2012-07-08 08:30:20,419 Parameters: domain_left_edge          = [  0.00000000e+00  -6.55360000e+09   0.00000000e+00]
> yt : [INFO     ] 2012-07-08 08:30:20,420 Parameters: domain_right_edge         = [  2.62144000e+10   6.55360000e+09   1.74532925e-02]
> yt : [INFO     ] 2012-07-08 08:30:20,420 Parameters: cosmological_simulation   = 0.0
> yt : [WARNING  ] 2012-07-08 08:30:20,420 Setting 1.0 in code units to be 1.0 cm
> yt : [WARNING  ] 2012-07-08 08:30:20,420 No time units.  Setting 1.0 = 1 second.
> 
>>>> for field in pf.h.field_list: print field
> ... 
> yt : [INFO     ] 2012-07-08 08:30:35,531 Adding unknown field dens to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field divb to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field eint to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field ener to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field fspd to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field gamc to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field game to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field gpol to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,532 Adding unknown field gpot to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field magp to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field magx to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field magy to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field magz to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field pres to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field temp to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field velx to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field vely to list of fields
> yt : [INFO     ] 2012-07-08 08:30:35,533 Adding unknown field velz to list of fields
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/aphelion/jisuoqing/yt-x86_64/src/yt-hg/yt/data_objects/static_output.py", line 172, in hierarchy
>    self, data_style=self.data_style)
>  File "/aphelion/jisuoqing/yt-x86_64/src/yt-hg/yt/frontends/flash/data_structures.py", line 73, in __init__
>    AMRHierarchy.__init__(self,pf,data_style)
>  File "/aphelion/jisuoqing/yt-x86_64/src/yt-hg/yt/data_objects/hierarchy.py", line 83, in __init__
>    self._setup_unknown_fields()
>  File "/aphelion/jisuoqing/yt-x86_64/src/yt-hg/yt/data_objects/hierarchy.py", line 146, in _setup_unknown_fields
>    ff = self.parameter_file.field_info.pop(field, None)
> TypeError: unhashable type: 'list'
> 
> By the way, YT still works fine with plot file in this case.
> 
> I sincerely appreciate it if you could provide me with any suggestions on this.
> 
> Best wishes,
> Suoqing
> 
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> 
> !DSPAM:10175,4ff911bb9333208735165!
> 




More information about the yt-users mailing list