Skip to content

Commit

Permalink
fixing local DV typos (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
hajdik authored May 3, 2022
1 parent 2a178fd commit cad9040
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pygeo/parameterization/designVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, name, lower, upper, scale, axis, coefListIn, mask, config):

N = len(axis)
nVal = len(coefList) * N
super().__init__(name=name, value=np.zeros(nVal, "D"), nVal=nVal * N, lower=lower, upper=lower, scale=scale)
super().__init__(name=name, value=np.zeros(nVal, "D"), nVal=nVal, lower=lower, upper=upper, scale=scale)

self.config = config
self.coefList = np.zeros((self.nVal, 2), "intc")
Expand Down Expand Up @@ -155,7 +155,7 @@ def __init__(self, name, lower, upper, scale, axis, vol_dv_to_coefs, mask, confi
self.dv_to_coefs.append(loc_dv_to_coefs)

nVal = len(self.dv_to_coefs)
super().__init__(name=name, value=np.zeros(nVal, "D"), nVal=nVal, lower=lower, upper=lower, scale=scale)
super().__init__(name=name, value=np.zeros(nVal, "D"), nVal=nVal, lower=lower, upper=upper, scale=scale)

if "x" == axis.lower():
self.axis = 0
Expand Down Expand Up @@ -229,12 +229,6 @@ def __init__(self, name, lower, upper, scale, axis, coefListIn, mask, config, se
super().__init__(name=name, value=np.zeros(nVal, "D"), nVal=nVal, lower=None, upper=None, scale=scale)

self.config = config
if lower is not None:
self.lower = convertTo1D(lower, self.nVal)
if upper is not None:
self.upper = convertTo1D(upper, self.nVal)
if scale is not None:
self.scale = convertTo1D(scale, self.nVal)

self.sectionTransform = sectionTransform
self.sectionLink = sectionLink
Expand Down

0 comments on commit cad9040

Please sign in to comment.