Skip to content

Commit 5fc65c9

Browse files
committed
fix scaling of field [no ci]
1 parent 5120c34 commit 5fc65c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/experimental/Spatial_Data.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@
112112
"\n",
113113
"\n",
114114
"def distribution(shape):\n",
115-
" a = np.random.normal(loc=0, scale=1, size=shape)\n",
116-
" b = np.random.normal(loc=0, scale=1, size=shape)\n",
115+
" a = np.random.normal(loc=0, scale=np.sqrt(np.prod(shape)), size=shape)\n",
116+
" b = np.random.normal(loc=0, scale=np.sqrt(np.prod(shape)), size=shape)\n",
117117
" return a + 1j * b"
118118
]
119119
},

0 commit comments

Comments
 (0)