changes to splitting_densityGrid.py