From 0cf6e179189faaea7241b7a5468687b408ed5c16 Mon Sep 17 00:00:00 2001 From: Karl Gordon Date: Thu, 15 Feb 2024 16:24:22 -0500 Subject: [PATCH] making code simpler --- beast/tools/make_libfile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beast/tools/make_libfile.py b/beast/tools/make_libfile.py index 28abe18e..b91e3566 100644 --- a/beast/tools/make_libfile.py +++ b/beast/tools/make_libfile.py @@ -678,10 +678,10 @@ def make_vega_libfile(): lum = [] mag = [] - for i in range(len(flist)): - fname.append(flist[i].name) - cwave.append(flist[i].cl) - flux = flist[i].getFlux(vl, vf) + for cfilt in flist: + fname.append(cfilt.name) + cwave.append(cfilt.cl) + flux = cfilt.getFlux(vl, vf) lum.append(flux) mag.append(-2.5 * np.log10(flux))