From 5fa0519821005aa57bd920a469b321e9999948d4 Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sat, 27 Apr 2024 19:08:00 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=20Add=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/arpes/analysis/band_analysis.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arpes/analysis/band_analysis.py b/src/arpes/analysis/band_analysis.py index b50d9d71..d5aa8f66 100644 --- a/src/arpes/analysis/band_analysis.py +++ b/src/arpes/analysis/band_analysis.py @@ -215,11 +215,14 @@ def _identified_band_results_etc( Args: band_results (xr.DataArray): band results. + the value must be the array of lmfit.model.ModelResul + return of broadcast_model().results weights (tuple[float, float, float]): weight values for sigma, amplitude, center Returns: [TODO:description] """ + band_results = band_results if isinstance(band_results, xr.DataArray) else band_results.results prefixes = [component.prefix for component in band_results.values[0].model.components] identified_band_results = copy.deepcopy(band_results)