From a276ccfd41e9be68fe1df1a2e1fea2c28e5ef807 Mon Sep 17 00:00:00 2001 From: Corey Spohn Date: Thu, 4 Dec 2025 14:14:28 -0500 Subject: [PATCH] fix: update throughput calculation in plot_core_throughtput function --- src/yieldplotlib/plots/yip_plots.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/yieldplotlib/plots/yip_plots.py b/src/yieldplotlib/plots/yip_plots.py index e391a3a0..39347701 100644 --- a/src/yieldplotlib/plots/yip_plots.py +++ b/src/yieldplotlib/plots/yip_plots.py @@ -121,9 +121,11 @@ def plot_core_throughtput( fig = ax.get_figure() if yip: - separations, core_thruput_from_yip = yip.coronagraph.get_throughput_curve( - plot=False, aperture_radius_lod=aperture_radius, oversample=1 + performance_metrics = yip.coronagraph.compute_all_performance_curves( + oversample=1, aperture_radius_lod=aperture_radius ) + separations = performance_metrics["separations"] + core_thruput_from_yip = performance_metrics["throughput"] ax.plot(separations, core_thruput_from_yip, label="yippy") for i, run in enumerate(runs):