Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck committed Nov 14, 2024
1 parent c08d4e1 commit 11e0686
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pyoptsparse/pyOpt_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,10 +697,7 @@ def printSparsity(self, verticalPrint=False):
var_str = "(" + str(self.dvOffset[dvGroup][1] - self.dvOffset[dvGroup][0]) + ")"
half_length = len(var_str) / 2
k = int(varCenters[j])
txt[
i,
int(k - half_length + 1) : int(k - half_length + 1 + len(var_str)),
] = list(var_str)
txt[i, int(k - half_length + 1) : int(k - half_length + 1 + len(var_str))] = list(var_str)

for i in range(len(txt)):
print("".join(txt[i]))
Expand Down

0 comments on commit 11e0686

Please sign in to comment.