s.halos() not working for RAMSES

39 views
Skip to first unread message

GANESH N

unread,
Nov 17, 2022, 10:51:30 PM11/17/22
to pynbody-users
Halo finder not working in the analysis of simulation of an isolated disk galaxy using RAMSES. I have installed AHF halo finder and added its path to .bashrc.  But when I run s.halos() I get the following error.
************************************************************************************
configparser.InterpolationSyntaxError: bad interpolation variable reference '%(typecode)d\noutfile_prefix = %(filename)s\nLgridDomain = 256\nLgridMax = %(gridmax)d\nNperDomCell = 5\nNperRefCell = 5\nVescTune = 1.5\nNminPerHalo = 50\nRhoVir = 0\nDvir = 200\nMaxGatherRad = 10.0'  
************************************************************************************
Should I edit the configuration file of pynbody for RAMSES? 
Please help to resolve the issue.

Tobias Buck

unread,
Nov 18, 2022, 2:45:37 AM11/18/22
to GANESH N, pynbod...@googlegroups.com
Hi Ganesh,

I had a similar issue.
I think the solution boils down to some string formatting issues in the config file for the AHF section.
with this in the .pynbodyrc file not works for me:

[AHFCatalogue]

Config:   [AHF]
          ic_filename = %(filename)s
          ic_filetype = %(typecode)s
          outfile_prefix = %(filename)s
          LgridDomain = 256
          LgridMax = %(gridmax)s
          NperDomCell = 5
          NperRefCell = 5
          VescTune = 1.5
          NminPerHalo = 50
          RhoVir = 0
          Dvir = 200
          MaxGatherRad = 10.0

ConfigTipsy:      [TIPSY]
          TIPSY_OMEGA0 = %(omega0)s
          TIPSY_LAMBDA0 = %(lambda0)s
          TIPSY_BOXSIZE = %(boxsize)s
          TIPSY_VUNIT = %(vunit)s

 

cheers
Tobias



--
You received this message because you are subscribed to the Google Groups "pynbody-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynbody-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pynbody-users/f23a00d9-31ce-4274-884a-4dd5193fb1d4n%40googlegroups.com.

Andrew Pontzen

unread,
Nov 18, 2022, 5:03:54 PM11/18/22
to GANESH N, pynbody-users
I don’t think AHF works with Ramses files, unfortunately. You’ll probably need to use HOP, AdaptaHOP, or create a pipeline like converting your Ramses to gadget files in order to run AHF.

Hope this helps a little. All the best,

Andrew Pontzen

--
Reply all
Reply to author
Forward
0 new messages