Skip to content

Commit dc6b7ff

Browse files
committed
cleanup fabricate_fcs_file.py example
1 parent 231738e commit dc6b7ff

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

docs/examples/fabricate_fcs_file.py

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,50 @@
88
# these clusters are clearly separated
99
cluster1 = np.random.multivariate_normal(
1010
[6000.0, 6000.0, 0.0, 3000.0],
11-
[
12-
[600000, 300, 0, 0],
13-
[300, 1000, 0, 0],
14-
[0, 0, 1, 10],
15-
[0, 0, 10, 1000]
16-
],
11+
np.array(
12+
[
13+
[600000, 300, 0, 0],
14+
[300, 1000, 0, 0],
15+
[0, 0, 1, 10],
16+
[0, 0, 10, 1000]
17+
]
18+
),
1719
(2000,)
1820
)
1921
cluster2 = np.random.multivariate_normal(
2022
[-10.0, 0.0, 0.0, 0.0],
21-
[
22-
[10000, 100, 0, 0],
23-
[100, 10000, 0, 0],
24-
[0, 0, 100000, 0],
25-
[0, 0, 0, 1000]
26-
],
23+
np.array(
24+
[
25+
[10000, 100, 0, 0],
26+
[100, 10000, 0, 0],
27+
[0, 0, 100000, 0],
28+
[0, 0, 0, 1000]
29+
]
30+
),
2731
(2000,)
2832
)
2933
cluster3a = np.random.multivariate_normal(
3034
[7000.0, 2000.0, -6.0, 1500],
31-
[
32-
[100000, 100, 0, 0],
33-
[100, 100000, 100, 0],
34-
[0, 100, 10000, 0],
35-
[0, 0, 0, 10000]
36-
],
35+
np.array(
36+
[
37+
[100000, 100, 0, 0],
38+
[100, 100000, 100, 0],
39+
[0, 100, 10000, 0],
40+
[0, 0, 0, 10000]
41+
]
42+
),
3743
(2000,)
3844
)
3945
cluster3b = np.random.multivariate_normal(
4046
[2000.0, 7000.0, 1500.0, -6.0],
41-
[
42-
[100000, 100, 0, 0],
43-
[100, 100000, 100, 0],
44-
[0, 100, 10000, 0],
45-
[0, 0, 0, 10000]
46-
],
47+
np.array(
48+
[
49+
[100000, 100, 0, 0],
50+
[100, 100000, 100, 0],
51+
[0, 100, 10000, 0],
52+
[0, 0, 0, 10000]
53+
]
54+
),
4755
(2000,)
4856
)
4957

0 commit comments

Comments
 (0)