Skip to content

Commit

Permalink
Remove debugging print statements
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Maier <[email protected]>
  • Loading branch information
maierbn committed Sep 29, 2023
1 parent 248f64f commit ae2586e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pylife/mesh/gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,19 +383,14 @@ def gradient_of(self, value_key):
df_grad = df.groupby("element_id", group_keys=False).apply(self._compute_gradient)

# compile the resulting DataFrame
print(df.index.shape)
print(df_grad.shape)
result = pd.DataFrame(copy=True, data={
f"d{value_key}_dx": df_grad.grad_x,
f"d{value_key}_dy": df_grad.grad_y,
f"d{value_key}_dz": df_grad.grad_z,
})
print(self._obj)

# remove "element_id" index in multi-index
result = result.reset_index(level=0, drop=True)
print(result)

# return result
# remove duplicate indices, keep the first node
return result[~result.index.duplicated(keep='first')]

0 comments on commit ae2586e

Please sign in to comment.