add gaussian-zoomed spacing function, useful for zooming into part of the parameter sace
add option such that when resolution==0, the resolution is calculated automatically from the sample list. add delete_grid_variable function In my CEMP simulations, I use the above with something like this to zoom in around 0.8Msun in M1: emp_population.update_grid_variable( name="lnm1", spacingfunc="gaussian_zoom(np.log(0.4),np.log(6.0),np.log(0.8),0.05,0.99,100)", resolution=0 )
Showing
- binarycpython/utils/grid.py 50 additions, 13 deletionsbinarycpython/utils/grid.py
- binarycpython/utils/grid_options_defaults.py 2 additions, 0 deletionsbinarycpython/utils/grid_options_defaults.py
- binarycpython/utils/spacing_functions.py 70 additions, 2 deletionsbinarycpython/utils/spacing_functions.py
Loading
Please register or sign in to comment