Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtuck committed Mar 30, 2024
1 parent fadeaed commit 61f9e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fdasrsf/geometry.py
Expand Up @@ -137,12 +137,12 @@ def h_to_gam(h):
TT = h.shape[0]
time = linspace(0, 1, TT)
mu = ones(TT)
if v.ndim == 1:
if h.ndim == 1:
gam0 = cumulative_trapezoid(exp(h), time, initial=0)
gam0 /= trapezoid(exp(h), time)
gam = (gam0 - gam0.min()) / (gam0.max() - gam0.min())
else:
n = v.shape[1]
n = h.shape[1]

gam = zeros((TT, n))
for i in range(0, n):
Expand Down

0 comments on commit 61f9e8e

Please sign in to comment.