Skip to content

Commit

Permalink
tmpltbank fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnitz committed Sep 4, 2024
1 parent 09b8285 commit fe019a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycbc/tmpltbank/coord_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def get_mu_params(lambdas, metricParams, fUpper):
mus : list of floats or numpy.arrays
Position of the system(s) in the mu coordinate system
"""
lambdas = numpy.array(lambdas, copy=False)
lambdas = numpy.asarray(lambdas)
# If original inputs were floats we need to make this a 2D array
if len(lambdas.shape) == 1:
resize_needed = True
Expand All @@ -451,7 +451,7 @@ def get_mu_params(lambdas, metricParams, fUpper):
evecs = metricParams.evecs[fUpper]
evals = metricParams.evals[fUpper]

evecs = numpy.array(evecs, copy=False)
evecs = numpy.asarray(evecs)

mus = ((lambdas.T).dot(evecs)).T
mus = mus * numpy.sqrt(evals)[:,None]
Expand Down Expand Up @@ -479,7 +479,7 @@ def get_covaried_params(mus, evecsCV):
xis : list of floats or numpy.arrays
Position of the system(s) in the xi coordinate system
"""
mus = numpy.array(mus, copy=False)
mus = numpy.asarray(mus)
# If original inputs were floats we need to make this a 2D array
if len(mus.shape) == 1:
resize_needed = True
Expand Down

0 comments on commit fe019a1

Please sign in to comment.