Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce094a3

Browse files
committed
BUG: fixed edge methods in 3 parameter lineshape classes
1 parent f4248d0 commit ce094a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nmrglue/analysis/lineshapes1d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,12 @@ def nparam(self, M):
402402
def add_edge(self, p, (min, max)):
403403
if p[0] is None:
404404
return p
405-
return p[0] - min, p[1]
405+
return p[0] - min, p[1], p[2]
406406

407407
def remove_edge(self, p, (min, max)):
408408
if p[0] is None:
409409
return p
410-
return p[0] + min, p[1]
410+
return p[0] + min, p[1], p[2]
411411

412412

413413
class voigt_fwhm(location_2params):

0 commit comments

Comments
 (0)