Skip to content

Commit

Permalink
Change default padding to symmetric
Browse files Browse the repository at this point in the history
  • Loading branch information
aatmdelissen committed Feb 13, 2024
1 parent 0eaed72 commit 350a2c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymoto/modules/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def _prepare(self, domain: DomainDefinition, radius: float = None, relative_unit
self.el3d_orig = self.domain.get_elemnumber(el_x, el_y, el_z)

# Reflect boundaries
self.el3d = np.pad(self.el3d_orig, [(d, d) for d in pad_sizes], mode='reflect')

self.el3d = np.pad(self.el3d_orig, [(d, d) for d in pad_sizes], mode='symmetric')

def set_filter_radius(self, radius: float, relative_units: bool = True):
if relative_units:
Expand Down

0 comments on commit 350a2c8

Please sign in to comment.