You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the template below will help us reproduce your problem, which is an essential first step in helping or improving the code. Feel free to customise the template if you are used to raising bug reports, but be sure that you give us enough information to start investigating.
~/anaconda3/lib/python3.8/site-packages/pynbody/bridge/init.py in catalog_transfer_matrix(self, min_index, max_index, groups_1, groups_2, use_family, only_family)
183
184 g1 = groups_1.get_group_array(family=only_family)[restriction_start_indices]
--> 185 g2 = groups_2.get_group_array(family=only_family)[restriction_end_indices]
186
187 if max_index is None:
IndexError: index 168398453 is out of bounds for axis 0 with size 168398453
To Reproduce
import pynbody
s = pynbody.load('sim1.00xxxx')
s.physical_units()
h = s.halos()
s2 = pynbody.load('sim2.00xxxx')
s2.physical_units()
h2 = s2.halos()
b = s2.bridge(s)
cat = b.fuzzy_match_catalog(only_family=pynbody.family.dm)
Preferably reproduce the bug using pynbody's own test data (as used by the tutorials, and downloadable at http://star.ucl.ac.uk/~app/testdata.tar.gz). If this impossible, provide us a pointer to another file that we can use to reproduce the problem.
Expected behaviour or result
For each halo in sim1, a list of possible identifications in sim2, along with the fraction of dark matter particles in common between the two.
Setup (please complete the following information):
Additional context
The IndexError is produced when trying to match halos using dark matter between two different simulations (e.g. s = pynbody.load('h148.cosmo50PLK.6144g3HbwK1BH.004096'); s2 = pynbody.load('h148.cosmo50cvdXsec.6144.004096')) and when trying to match halos with dark matter between two different outputs from the same simulation (e.g. s = pynbody.load('h148.cosmo50PLK.6144g3HbwK1BH.004096'); s2 = pynbody.load('h148.cosmo50PLK.6144g3HbwK1BH.003456'))
The text was updated successfully, but these errors were encountered:
Using the template below will help us reproduce your problem, which is an essential first step in helping or improving the code. Feel free to customise the template if you are used to raising bug reports, but be sure that you give us enough information to start investigating.
Describe the bug
~/anaconda3/lib/python3.8/site-packages/pynbody/bridge/init.py in fuzzy_match_catalog(self, min_index, max_index, threshold, groups_1, groups_2, use_family, only_family)
123 """
124
--> 125 transfer_matrix = self.catalog_transfer_matrix(min_index,max_index,groups_1,groups_2,use_family,only_family)
126
127 output = [[]]*min_index
~/anaconda3/lib/python3.8/site-packages/pynbody/bridge/init.py in catalog_transfer_matrix(self, min_index, max_index, groups_1, groups_2, use_family, only_family)
183
184 g1 = groups_1.get_group_array(family=only_family)[restriction_start_indices]
--> 185 g2 = groups_2.get_group_array(family=only_family)[restriction_end_indices]
186
187 if max_index is None:
IndexError: index 168398453 is out of bounds for axis 0 with size 168398453
To Reproduce
import pynbody
s = pynbody.load('sim1.00xxxx')
s.physical_units()
h = s.halos()
s2 = pynbody.load('sim2.00xxxx')
s2.physical_units()
h2 = s2.halos()
b = s2.bridge(s)
cat = b.fuzzy_match_catalog(only_family=pynbody.family.dm)
Preferably reproduce the bug using pynbody's own test data (as used by the tutorials, and downloadable at http://star.ucl.ac.uk/~app/testdata.tar.gz). If this impossible, provide us a pointer to another file that we can use to reproduce the problem.
See file h148_bridge.tar.gz attached.
Expected behaviour or result
For each halo in sim1, a list of possible identifications in sim2, along with the fraction of dark matter particles in common between the two.
Setup (please complete the following information):
Additional context
The IndexError is produced when trying to match halos using dark matter between two different simulations (e.g. s = pynbody.load('h148.cosmo50PLK.6144g3HbwK1BH.004096'); s2 = pynbody.load('h148.cosmo50cvdXsec.6144.004096')) and when trying to match halos with dark matter between two different outputs from the same simulation (e.g. s = pynbody.load('h148.cosmo50PLK.6144g3HbwK1BH.004096'); s2 = pynbody.load('h148.cosmo50PLK.6144g3HbwK1BH.003456'))
The text was updated successfully, but these errors were encountered: