Can you share the full traceback you see along with the error message?

On Wed, May 9, 2018 at 9:07 PM <lianxiaoli87@sjtu.edu.cn> wrote:
Dear all:
    Recently, I try to get the merger-tree for my Enzo simulation. The halo catalogs can be obtained by HaloCatalog or FOFHaloFinder correctly.
But it will be wrong when I use these halo lists and  catalogs to get their merger tree.
    Here is my code and the Error-message:
Code:
ts = yt.load("DD????/DD????")
for ds in ts:
    halo_list = FOFHaloFinder(ds)
    i = int(ds.basename[2:])
    halo_list.write_out("FOF/groups_%05i.txt" % i)
    halo_list.write_particle_lists("FOF/particles_%05i" % i)
 mt = EnzoFOFMergerTree(external_FOF=False)
 for i in range(20):
    mt.build_tree(i)
    mt.save_halo_evolution('halos.h5')
 for i in range(20):
     plot_halo_evolution('halos.h5', i)
Error Message:
TypeError: '<' not supported between instances of 'str' and 'int'.
    This error is from the commander of mt.build_tree(i), for the other commanders can work well.
I try to figure it out and check the yt code, but it still show me this wrong message.
    Hopefully for your help!
Xiaoli Lian
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org