@@ -15,42 +15,97 @@ export function isAtom<T>(val: unknown): val is Atom<T> {
1515 return typeof val === 'object' && val !== null && 'read' in val ;
1616}
1717
18- export const ORDERING : Record < string , { order : number ; category : string } > = {
19- info : {
20- order : 0 ,
21- category : 'Setup' ,
22- } ,
23- initialize : {
24- order : 1 ,
25- category : 'Setup' ,
18+ // export const ORDERING: Record<string, { order: number; category: string }> = {
19+ // info: {
20+ // order: 0,
21+ // category: 'Setup',
22+ // },
23+ // initialize: {
24+ // order: 1,
25+ // category: 'Setup',
26+ // },
27+ // equations: {
28+ // order: 2,
29+ // category: 'Equations',
30+ // },
31+ // stimuli: {
32+ // order: 3,
33+ // category: 'Stimuli & Recordings',
34+ // },
35+ // recordings: {
36+ // order: 4,
37+ // category: 'Stimuli & Recordings',
38+ // },
39+ // neuron_sets: {
40+ // order: 5,
41+ // category: 'Circuit components',
42+ // },
43+ // timestamps: {
44+ // order: 6,
45+ // category: 'Events',
46+ // },
47+ // synaptic_manipulations: {
48+ // order: 7,
49+ // category: 'Circuit components',
50+ // },
51+ // };
52+
53+
54+ export const ORDERING : Record <
55+ string ,
56+ Record < string , { order : number ; category : string } >
57+ > = {
58+ a : {
59+ info : {
60+ order : 0 ,
61+ category : 'Setup' ,
62+ } ,
63+ initialize : {
64+ order : 1 ,
65+ category : 'Setup' ,
66+ } ,
67+ equations : {
68+ order : 2 ,
69+ category : 'Equations' ,
70+ } ,
2671 } ,
27- equations : {
28- order : 2 ,
29- category : 'Equations' ,
72+ b : {
73+ info : {
74+ order : 0 ,
75+ category : 'Setup' ,
76+ } ,
77+ initialize : {
78+ order : 1 ,
79+ category : 'Setup' ,
80+ } ,
81+ stimuli : {
82+ order : 2 ,
83+ category : 'Stimuli & Recordings' ,
84+ } ,
85+ recordings : {
86+ order : 3 ,
87+ category : 'Stimuli & Recordings' ,
88+ } ,
89+ neuron_sets : {
90+ order : 4 ,
91+ category : 'Circuit components' ,
92+ } ,
93+ timestamps : {
94+ order : 5 ,
95+ category : 'Events' ,
96+ } ,
97+ synaptic_manipulations : {
98+ order : 6 ,
99+ category : 'Circuit components' ,
100+ } ,
30101 } ,
31- // stimuli: {
32- // order: 3,
33- // category: 'Stimuli & Recordings',
34- // },
35- // recordings: {
36- // order: 4,
37- // category: 'Stimuli & Recordings',
38- // },
39- // neuron_sets: {
40- // order: 5,
41- // category: 'Circuit components',
42- // },
43- // timestamps: {
44- // order: 6,
45- // category: 'Events',
46- // },
47- // synaptic_manipulations: {
48- // order: 7,
49- // category: 'Circuit components',
50- // },
51102} ;
52103
53- export const CATEGORIES : string [ ] = uniq ( Object . values ( ORDERING ) . map ( ( o ) => o . category ) ) ;
104+
105+ export const CATEGORIES : Record < 'a' | 'b' , string [ ] > = {
106+ a : uniq ( Object . values ( ORDERING . a ) . map ( o => o . category ) ) ,
107+ b : uniq ( Object . values ( ORDERING . b ) . map ( o => o . category ) ) ,
108+ } ;
54109
55110const simExecStatusListordered = [
56111 CircuitSimulationExecutionStatus . CREATED ,
0 commit comments