@@ -374,7 +374,7 @@ def time_delays_from(
374374 )
375375
376376 # Final time delay in days
377- return (D_dt_m / c ) * fermat_potential * factor
377+ return (D_dt_m / c ) * fermat_potential * factor11
378378
379379
380380def ordered_plane_redshifts_with_slicing_from (
@@ -436,80 +436,4 @@ def ordered_plane_redshifts_with_slicing_from(
436436 return plane_redshifts [0 :- 1 ]
437437
438438
439- def critical_curves_from (tracer , grid ):
440- """
441- Compute tangential and radial critical curves for the tracer via LensCalc and
442- return them as plain lists of numpy arrays.
443-
444- Returns
445- -------
446- tuple[list, list]
447- ``(tangential_critical_curves, radial_critical_curves)`` where each element
448- is a list of (N, 2) numpy arrays. *radial_critical_curves* may be an empty
449- list when the radial curve area is below the pixel-scale threshold.
450- """
451- from autogalaxy .operate .lens_calc import LensCalc
452- import numpy as np
453-
454- od = LensCalc .from_mass_obj (tracer )
455-
456- tangential_critical_curves = od .tangential_critical_curve_list_from (grid = grid )
457-
458- radial_critical_curve_area_list = od .radial_critical_curve_area_list_from (grid = grid )
459- if any (area > grid .pixel_scale for area in radial_critical_curve_area_list ):
460- radial_critical_curves = od .radial_critical_curve_list_from (grid = grid )
461- else :
462- radial_critical_curves = []
463-
464- return tangential_critical_curves , radial_critical_curves
465-
466-
467- def caustics_from (tracer , grid ):
468- """
469- Compute tangential and radial caustics for the tracer via LensCalc and
470- return them as plain lists of numpy arrays.
471-
472- Returns
473- -------
474- tuple[list, list]
475- ``(tangential_caustics, radial_caustics)`` where each element is a list
476- of (N, 2) numpy arrays.
477- """
478- from autogalaxy .operate .lens_calc import LensCalc
479-
480- od = LensCalc .from_mass_obj (tracer )
481-
482- tangential_caustics = od .tangential_caustic_list_from (grid = grid )
483- radial_caustics = od .radial_caustic_list_from (grid = grid )
484-
485- return tangential_caustics , radial_caustics
486-
487-
488- def lines_of_planes_from (tracer , grid ):
489- """
490- For each plane in the tracer return the appropriate line overlays:
491- - plane 0 (image plane): critical curves
492- - plane 1+ (source planes): caustics
493-
494- Returns
495- -------
496- list[list[np.ndarray]]
497- One entry per plane; each entry is a (possibly empty) list of (N, 2) numpy
498- arrays suitable for passing as ``lines=`` to ``_plot_array``.
499- """
500- tan_cc , rad_cc = critical_curves_from (tracer = tracer , grid = grid )
501- tan_ca , rad_ca = caustics_from (tracer = tracer , grid = grid )
502-
503- critical_curve_lines = list (tan_cc ) + list (rad_cc )
504- caustic_lines = list (tan_ca ) + list (rad_ca )
505-
506- lines_of_planes = []
507- for plane_index in range (len (tracer .planes )):
508- if plane_index == 0 :
509- lines_of_planes .append (critical_curve_lines )
510- else :
511- lines_of_planes .append (caustic_lines )
512-
513- return lines_of_planes
514-
515439
0 commit comments