Skip to content

Commit 3c8a992

Browse files
committed
fix wrap on wm
1 parent ffbaff6 commit 3c8a992

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

model/distributions/torus/wrapped_normal/frolov.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ def sample(self, sample_options, distribution_options):
3939

4040
# wrapp
4141
gaus_grid[:,0] = gaus_grid[:,0] % (2 * np.pi)
42+
gaus_grid[:,1] = gaus_grid[:,1] % (2 * np.pi)
4243
return gaus_grid

model/distributions/torus/wrapped_normal/improved_frolov.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ def sample(self, sample_options, distribution_options):
3939

4040
# wrapp
4141
gaus_grid[:,0] = gaus_grid[:,0] % (2 * np.pi)
42+
gaus_grid[:,1] = gaus_grid[:,1] % (2 * np.pi)
4243
return gaus_grid

0 commit comments

Comments
 (0)