Don’t use deprecated luminosity_distance function

@eteq @nhmc @aconley - this ensures that the deprecated ``luminosity_distance`` function doesn't get used, and instead the appropriate method is used. Does this look right?