Skip to content

Commit 718ef27

Browse files
authored
Merge pull request #174 from ContextLab/subtraction_work
adding auto build stuff
2 parents 9a69640 + 8e026c4 commit 718ef27

File tree

8 files changed

+25
-17
lines changed

8 files changed

+25
-17
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

docs/tutorial/simulate_objects.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,33 +61,33 @@ To begin, we can either simulate locations:
6161
<tbody>
6262
<tr>
6363
<th>0</th>
64-
<td>-49</td>
65-
<td>11</td>
66-
<td>32</td>
64+
<td>-17</td>
65+
<td>2</td>
66+
<td>4</td>
6767
</tr>
6868
<tr>
6969
<th>1</th>
70-
<td>-29</td>
71-
<td>44</td>
72-
<td>34</td>
70+
<td>-14</td>
71+
<td>9</td>
72+
<td>-1</td>
7373
</tr>
7474
<tr>
7575
<th>2</th>
76-
<td>-3</td>
77-
<td>32</td>
78-
<td>14</td>
76+
<td>-7</td>
77+
<td>-35</td>
78+
<td>-9</td>
7979
</tr>
8080
<tr>
8181
<th>3</th>
82-
<td>-1</td>
83-
<td>8</td>
84-
<td>21</td>
82+
<td>-2</td>
83+
<td>10</td>
84+
<td>3</td>
8585
</tr>
8686
<tr>
8787
<th>4</th>
88-
<td>13</td>
89-
<td>30</td>
90-
<td>-16</td>
88+
<td>-2</td>
89+
<td>23</td>
90+
<td>44</td>
9191
</tr>
9292
</tbody>
9393
</table>
-367 Bytes
Loading
117 Bytes
Loading

supereeg/brain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ def __next__(self):
237237
return s
238238

239239
def next(self):
240+
"""
241+
Return next sample from Brain object (wrapper for self.__next__)
242+
"""
240243
return self.__next__()
241244

242245
def update_filter_inds(self):

supereeg/nifti.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,15 @@ def make_gif(self, gifpath, index=range(0, 10), name=None, **kwargs):
213213

214214

215215
def get_locs(self):
216+
"""
217+
Return locations of voxels
218+
"""
216219
bo = Brain(self)
217220
return bo.get_locs()
218221

219222

220223
def save(self, filepath):
221-
224+
"""
225+
Save file to disk
226+
"""
222227
self.to_filename(filepath)

supereeg/simulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def simulate_model_data(n_samples=1000, n_elecs=170, locs=None, sample_locs=None
137137
Noise added to simulation
138138
139139
set_random_seed : bool or int
140-
Default False. If True, set random seed to 123. If int, set random seed to value.
140+
Default False (choose a random seed). If True, set random seed to 123. If int, set random seed to the specified value.
141141
142142
Returns
143143
----------

0 commit comments

Comments
 (0)