[yt-users] building fKDpy.so manually

Remudin Mekuria Remudin.Mekuria at students.wits.ac.za
Fri Jan 24 06:27:32 PST 2014


Hi all, 

While trying to run the attached script from "yt-cookbook" to get halo mass function, I am getting NameError: global name 'fKD' is not defined. 
It looks like I am tied up already, since I can't do "yt update" on the top of my manual installation. If I am not wrong, it looks to me that I have to  build fKDpy.so, may you help me on how to do that. Thank you in advance for your kindest help.


Cheers,

Remudin




====================
yt : [INFO     ] 2014-01-24 15:32:41,413 Building kd tree for 2097152 particles...
Traceback (most recent call last):
  File "mass_function.py", line 15, in <module>
    hp = amods.halo_profiler.HaloProfiler("/home/remudin/gas_plus_dm_uni_adia_simulation/RD0003/RedshiftOutput0003")
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_profiler/multi_halo_profiler.py", line 305, in __init__
    self._load_halo_data()
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_profiler/multi_halo_profiler.py", line 983, in _load_halo_data
    self._run_hop(hop_file)
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_profiler/multi_halo_profiler.py", line 1140, in _run_hop
    **self.halo_finder_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/halo_objects.py", line 2305, in __init__
    premerge=premerge, tree=self.tree)
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/halo_objects.py", line 1670, in __init__
    HaloList.__init__(self, data_source, dm_only)
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/halo_objects.py", line 1059, in __init__
    self._run_finder()
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/halo_objects.py", line 1698, in _run_finder
    tree=self.tree)
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 63, in __init__
    self._chain_hop()
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 1526, in _chain_hop
    self._init_kd_tree()
  File "/usr/local/lib/python2.7/dist-packages/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py", line 341, in _init_kd_tree
    fKD.dens = np.zeros(self.size, dtype='float64', order='F')
NameError: global name 'fKD' is not defined
==================================

................................ 
................................. 

Remudin Reshid; MEKURIA, 

School of Physics, Wits University, 
1 Jan Smuts Ave, Braamfontein, WITS 2050 
Johannesburg, South Africa 

................................ 
................................. 






<table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%;"> 
<tr>
<td align="left" style="text-align:justify;"><font face="arial,sans-serif" size="1" color="#999999"><span style="font-size:11px;">This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorised signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. </span></font></td>
</tr>
</table
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mass_function.py
Type: text/x-python
Size: 1727 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140124/d6d75129/attachment.py>


More information about the yt-users mailing list