Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mtakahiro committed Jun 18, 2022
1 parent cdf1783 commit aa6078b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gsf/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_leastsq(MB, ZZtmp, fneld, age, fit_params, residual, fy, ey, wht, ID0, c
if MB.has_ZFIX:
ZZtmp = [MB.ZFIX]

for zz in range(MB.nZ):
for zz in range(len(ZZtmp)):
ZZ = ZZtmp[zz]
for aa in range(MB.npeak):
if MB.ZEVOL == 1 or aa == 0:
Expand Down
2 changes: 1 addition & 1 deletion gsf/function_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def open_spec_fits(self, fall:int = 0, orig:bool = False):

DIR_TMP = self.DIR_TMP
for pp in range(self.MB.ntau0):
for zz in range(self.MB.nZ):
for zz in range(len(ZZ)):
Z = ZZ[zz]
NZ = bfnc.Z2NZ(Z)
if zz == 0 and pp == 0:
Expand Down

0 comments on commit aa6078b

Please sign in to comment.