zhafen / linefinder

A tool for finding and classifying the worldlines of Lagrangian parcels of mass, in the context of hydrodynamic simulations of galaxy formation.
https://zhafen.github.io/linefinder
MIT License
0 stars 1 forks source link

Failure to find distance to satellite galaxies, probably in the early universe #35

Closed zhafen closed 7 years ago

zhafen commented 7 years ago

Originally reported by Zachary Hafen (Bitbucket: zhafen, GitHub: zhafen)


Here's the error message. I bet it's that I didn't set up my distances correctly for the mock test.

#!python

1   Process Process-16:                                                                                                     
  1 Traceback (most recent call last):                                                                                      
  2   File "/opt/apps/intel13/python/2.7.9/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap               
  3     self.run()                                                                                                          
  4   File "/opt/apps/intel13/python/2.7.9/lib/python2.7/multiprocessing/process.py", line 114, in run                      
  5     self._target(*self._args, **self._kwargs)                                                                           
  6   File "/home1/03057/zhafen/repos/galaxy_diver/galaxy_diver/utils/mp_utils.py", line 94, in fun                         
  7     q_out.put( (i, f( x )) )                                                                                            
  8   File "/home1/03057/zhafen/repos/pathfinder/pathfinder/galaxy_find.py", line 233, in get_galaxy_and_halo_ids           
  9     galaxy_and_halo_ids = galaxy_finder.find_ids()                                                                      
 10   File "/home1/03057/zhafen/repos/pathfinder/pathfinder/galaxy_find.py", line 473, in find_ids                          
 11     galaxy_and_halo_ids['d_sat'] = self.find_d_sat( scaled=True )                                                       
 12   File "/home1/03057/zhafen/repos/pathfinder/pathfinder/galaxy_find.py", line 528, in find_d_sat                        
 13     inds_sat = np.argmin( dist_to_all_valid_sats, axis=1 )                                                              
 14   File "/home1/03057/zhafen/.local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 1019, in argmin         
 15     return _wrapfunc(a, 'argmin', axis=axis, out=out)                                                                   
 16   File "/home1/03057/zhafen/.local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 57, in _wrapfunc        
 17     return getattr(obj, method)(*args, **kwds)                                                                          
 18 ValueError: attempt to get argmin of an empty sequence

zhafen commented 7 years ago

Original comment by Zachary Hafen (Bitbucket: zhafen, GitHub: zhafen)


Now actually fixed Issue #35.

zhafen commented 7 years ago

Original comment by Zachary Hafen (Bitbucket: zhafen, GitHub: zhafen)


Fixed Issue #35.

zhafen commented 7 years ago

Original comment by Zachary Hafen (Bitbucket: zhafen, GitHub: zhafen)


This happens in snapshot 12 for m12iF1.

zhafen commented 7 years ago

Original comment by Zachary Hafen (Bitbucket: zhafen, GitHub: zhafen)


Working on this.