Skip to content

Commit

Permalink
convert triang output to scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 16, 2024
1 parent 72ab328 commit ae91e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py/rvspecfit/spec_inter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def __call__(self, p):
b1[:, None]).sum(axis=0)
if self.exp:
spec = np.exp(spec)
if spec.size == 1:
spec = float(spec[0])
return spec


Expand Down

0 comments on commit ae91e7d

Please sign in to comment.