Skip to content

Commit e487140

Browse files
authored
Merge pull request #109 from PyAutoLabs/feature/grid-respect-small-datasets
fix(cluster): keep cluster viz grid full-extent under PYAUTO_SMALL_DATASETS=1
2 parents 7e0572b + 65763a1 commit e487140

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/cluster/visualization.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ def draw_kpc_scale_bar(
401401
_t0 = time.perf_counter()
402402

403403
lens_calc = al.LensCalc.from_tracer(tracer, use_multi_plane=True, plane_j=-1)
404-
viz_grid = al.Grid2D.uniform(shape_native=(200, 200), pixel_scales=0.5)
404+
# The cluster host's tangential critical curve sits at ~30-50"; the assertion below requires the
405+
# grid to extend past it. Opt out of PYAUTO_SMALL_DATASETS' 15x15 @ 0.6" shrink for this one grid.
406+
viz_grid = al.Grid2D.uniform(
407+
shape_native=(200, 200), pixel_scales=0.5, respect_small_datasets=False
408+
)
405409
tangential_curves = lens_calc.tangential_critical_curve_list_from(grid=viz_grid)
406410

407411
CURVE_COLOR = "#00FFFF"

0 commit comments

Comments
 (0)