Skip to content

Commit

Permalink
switched to use .lout rather than .lay so box is preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Apr 27, 2015
1 parent 01350d1 commit 52f5d48
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
3 changes: 2 additions & 1 deletion mne/channels/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,8 @@ def generate_2d_layout(xy, w=.07, h=.05, pad=.02, ch_names=None,

# Create box and pos variable
box = _box_size(np.vstack([x, y]).T, padding=pad)
w, h = [np.array(i * x.shape[0]) for i in [[w], [h]]]
box = (0, 0, box[0], box[1])
w, h = [np.array([i] * x.shape[0]) for i in [w, h]]
loc_params = np.vstack([x, y, w, h]).T

layout = Layout(box, loc_params, ch_names, ch_indices, name)
Expand Down
23 changes: 0 additions & 23 deletions mne/data/image/custom_layout.lay

This file was deleted.

24 changes: 24 additions & 0 deletions mne/data/image/custom_layout.lout
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
0.00 0.00 0.08 0.04
000 0.13 0.34 0.07 0.05 0
001 0.16 0.49 0.07 0.05 1
002 0.18 0.63 0.07 0.05 2
003 0.25 0.52 0.07 0.05 3
004 0.32 0.63 0.07 0.05 4
005 0.34 0.49 0.07 0.05 5
006 0.36 0.35 0.07 0.05 6
007 0.44 0.35 0.07 0.05 7
008 0.45 0.49 0.07 0.05 8
009 0.45 0.63 0.07 0.05 9
010 0.48 0.53 0.07 0.05 10
011 0.52 0.44 0.07 0.05 11
012 0.56 0.35 0.07 0.05 12
013 0.56 0.49 0.07 0.05 13
014 0.56 0.63 0.07 0.05 14
015 0.69 0.62 0.07 0.05 15
016 0.69 0.55 0.07 0.05 16
017 0.69 0.49 0.07 0.05 17
018 0.69 0.42 0.07 0.05 18
019 0.69 0.34 0.07 0.05 19
020 0.77 0.35 0.07 0.05 20
021 0.77 0.49 0.07 0.05 21
022 0.77 0.63 0.07 0.05 22

0 comments on commit 52f5d48

Please sign in to comment.