Skip to content

Commit

Permalink
Advance to v0.0.7 (#10)
Browse files Browse the repository at this point in the history
Fix bug in include_first_basis
  • Loading branch information
zhengp0 authored Feb 26, 2021
2 parents 14c2375 + b25c94b commit 2302f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/xspline/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__summary__ = "xspline: Advanced spline tools"
__uri__ = "https://github.com/zhengp0/xspline"

__version__ = "0.0.6"
__version__ = "0.0.7"

__author__ = "Peng Zheng"
__email__ = "[email protected]"
Expand Down
6 changes: 3 additions & 3 deletions src/xspline/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def design_mat(self, x, l_extra=False, r_extra=False):
"""
mat = np.vstack([
self.fun(x, idx, l_extra=l_extra, r_extra=r_extra)
for idx in range(self.basis_start, self.num_spline_bases)
for idx in range(self.basis_start, self.num_spline_bases + self.basis_start)
]).T
return mat

Expand Down Expand Up @@ -679,7 +679,7 @@ def design_dmat(self, x, order, l_extra=False, r_extra=False):
"""
dmat = np.vstack([
self.dfun(x, order, idx, l_extra=l_extra, r_extra=r_extra)
for idx in range(self.basis_start, self.num_spline_bases)
for idx in range(self.basis_start, self.num_spline_bases + self.basis_start)
]).T
return dmat

Expand Down Expand Up @@ -712,7 +712,7 @@ def design_imat(self, a, x, order, l_extra=False, r_extra=False):
"""
imat = np.vstack([
self.ifun(a, x, order, idx, l_extra=l_extra, r_extra=r_extra)
for idx in range(self.basis_start, self.num_spline_bases)
for idx in range(self.basis_start, self.num_spline_bases + self.basis_start)
]).T
return imat

Expand Down

0 comments on commit 2302f11

Please sign in to comment.