Skip to content

Commit e6fbfa1

Browse files
committed
Adding mode sorting to ModeSpec
1 parent f9cf959 commit e6fbfa1

File tree

9 files changed

+391
-17
lines changed

9 files changed

+391
-17
lines changed

schemas/EMESimulation.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4831,6 +4831,13 @@
48314831
],
48324832
"type": "string"
48334833
},
4834+
"sort_spec": {
4835+
"allOf": [
4836+
{
4837+
"$ref": "#/definitions/ModeSortSpec"
4838+
}
4839+
]
4840+
},
48344841
"target_neff": {
48354842
"exclusiveMinimum": 0,
48364843
"type": "number"
@@ -7491,6 +7498,7 @@
74917498
0
74927499
],
74937500
"precision": "double",
7501+
"sort_spec": null,
74947502
"target_neff": null,
74957503
"track_freq": "central",
74967504
"type": "ModeSpec"
@@ -7691,6 +7699,7 @@
76917699
0
76927700
],
76937701
"precision": "double",
7702+
"sort_spec": null,
76947703
"target_neff": null,
76957704
"track_freq": "central",
76967705
"type": "ModeSpec"
@@ -7769,6 +7778,46 @@
77697778
],
77707779
"type": "object"
77717780
},
7781+
"ModeSortSpec": {
7782+
"additionalProperties": false,
7783+
"properties": {
7784+
"attrs": {
7785+
"default": {},
7786+
"type": "object"
7787+
},
7788+
"direction": {
7789+
"default": "descending",
7790+
"enum": [
7791+
"ascending",
7792+
"descending"
7793+
],
7794+
"type": "string"
7795+
},
7796+
"key": {
7797+
"default": "n_eff",
7798+
"enum": [
7799+
"TE_fraction",
7800+
"k_eff",
7801+
"mode_area",
7802+
"n_eff",
7803+
"wg_TE_fraction",
7804+
"wg_TM_fraction"
7805+
],
7806+
"type": "string"
7807+
},
7808+
"reference_value": {
7809+
"type": "number"
7810+
},
7811+
"type": {
7812+
"default": "ModeSortSpec",
7813+
"enum": [
7814+
"ModeSortSpec"
7815+
],
7816+
"type": "string"
7817+
}
7818+
},
7819+
"type": "object"
7820+
},
77727821
"ModeSpec": {
77737822
"additionalProperties": false,
77747823
"properties": {
@@ -7850,6 +7899,13 @@
78507899
],
78517900
"type": "string"
78527901
},
7902+
"sort_spec": {
7903+
"allOf": [
7904+
{
7905+
"$ref": "#/definitions/ModeSortSpec"
7906+
}
7907+
]
7908+
},
78537909
"target_neff": {
78547910
"exclusiveMinimum": 0,
78557911
"type": "number"

schemas/ModeSimulation.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6722,6 +6722,7 @@
67226722
0
67236723
],
67246724
"precision": "double",
6725+
"sort_spec": null,
67256726
"target_neff": null,
67266727
"track_freq": "central",
67276728
"type": "ModeSpec"
@@ -6892,6 +6893,7 @@
68926893
0
68936894
],
68946895
"precision": "double",
6896+
"sort_spec": null,
68956897
"target_neff": null,
68966898
"track_freq": "central",
68976899
"type": "ModeSpec"
@@ -7142,6 +7144,7 @@
71427144
0
71437145
],
71447146
"precision": "double",
7147+
"sort_spec": null,
71457148
"target_neff": null,
71467149
"track_freq": "central",
71477150
"type": "ModeSpec"
@@ -7220,6 +7223,46 @@
72207223
],
72217224
"type": "object"
72227225
},
7226+
"ModeSortSpec": {
7227+
"additionalProperties": false,
7228+
"properties": {
7229+
"attrs": {
7230+
"default": {},
7231+
"type": "object"
7232+
},
7233+
"direction": {
7234+
"default": "descending",
7235+
"enum": [
7236+
"ascending",
7237+
"descending"
7238+
],
7239+
"type": "string"
7240+
},
7241+
"key": {
7242+
"default": "n_eff",
7243+
"enum": [
7244+
"TE_fraction",
7245+
"k_eff",
7246+
"mode_area",
7247+
"n_eff",
7248+
"wg_TE_fraction",
7249+
"wg_TM_fraction"
7250+
],
7251+
"type": "string"
7252+
},
7253+
"reference_value": {
7254+
"type": "number"
7255+
},
7256+
"type": {
7257+
"default": "ModeSortSpec",
7258+
"enum": [
7259+
"ModeSortSpec"
7260+
],
7261+
"type": "string"
7262+
}
7263+
},
7264+
"type": "object"
7265+
},
72237266
"ModeSource": {
72247267
"additionalProperties": false,
72257268
"properties": {
@@ -7316,6 +7359,7 @@
73167359
0
73177360
],
73187361
"precision": "double",
7362+
"sort_spec": null,
73197363
"target_neff": null,
73207364
"track_freq": "central",
73217365
"type": "ModeSpec"
@@ -7494,6 +7538,13 @@
74947538
],
74957539
"type": "string"
74967540
},
7541+
"sort_spec": {
7542+
"allOf": [
7543+
{
7544+
"$ref": "#/definitions/ModeSortSpec"
7545+
}
7546+
]
7547+
},
74977548
"target_neff": {
74987549
"exclusiveMinimum": 0,
74997550
"type": "number"

schemas/Simulation.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10206,6 +10206,7 @@
1020610206
0
1020710207
],
1020810208
"precision": "double",
10209+
"sort_spec": null,
1020910210
"target_neff": null,
1021010211
"track_freq": "central",
1021110212
"type": "ModeSpec"
@@ -10376,6 +10377,7 @@
1037610377
0
1037710378
],
1037810379
"precision": "double",
10380+
"sort_spec": null,
1037910381
"target_neff": null,
1038010382
"track_freq": "central",
1038110383
"type": "ModeSpec"
@@ -10626,6 +10628,7 @@
1062610628
0
1062710629
],
1062810630
"precision": "double",
10631+
"sort_spec": null,
1062910632
"target_neff": null,
1063010633
"track_freq": "central",
1063110634
"type": "ModeSpec"
@@ -10704,6 +10707,46 @@
1070410707
],
1070510708
"type": "object"
1070610709
},
10710+
"ModeSortSpec": {
10711+
"additionalProperties": false,
10712+
"properties": {
10713+
"attrs": {
10714+
"default": {},
10715+
"type": "object"
10716+
},
10717+
"direction": {
10718+
"default": "descending",
10719+
"enum": [
10720+
"ascending",
10721+
"descending"
10722+
],
10723+
"type": "string"
10724+
},
10725+
"key": {
10726+
"default": "n_eff",
10727+
"enum": [
10728+
"TE_fraction",
10729+
"k_eff",
10730+
"mode_area",
10731+
"n_eff",
10732+
"wg_TE_fraction",
10733+
"wg_TM_fraction"
10734+
],
10735+
"type": "string"
10736+
},
10737+
"reference_value": {
10738+
"type": "number"
10739+
},
10740+
"type": {
10741+
"default": "ModeSortSpec",
10742+
"enum": [
10743+
"ModeSortSpec"
10744+
],
10745+
"type": "string"
10746+
}
10747+
},
10748+
"type": "object"
10749+
},
1070710750
"ModeSource": {
1070810751
"additionalProperties": false,
1070910752
"properties": {
@@ -10800,6 +10843,7 @@
1080010843
0
1080110844
],
1080210845
"precision": "double",
10846+
"sort_spec": null,
1080310847
"target_neff": null,
1080410848
"track_freq": "central",
1080510849
"type": "ModeSpec"
@@ -10978,6 +11022,13 @@
1097811022
],
1097911023
"type": "string"
1098011024
},
11025+
"sort_spec": {
11026+
"allOf": [
11027+
{
11028+
"$ref": "#/definitions/ModeSortSpec"
11029+
}
11030+
]
11031+
},
1098111032
"target_neff": {
1098211033
"exclusiveMinimum": 0,
1098311034
"type": "number"

schemas/TerminalComponentModeler.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10689,6 +10689,7 @@
1068910689
0
1069010690
],
1069110691
"precision": "double",
10692+
"sort_spec": null,
1069210693
"target_neff": null,
1069310694
"track_freq": "central",
1069410695
"type": "ModeSpec"
@@ -10859,6 +10860,7 @@
1085910860
0
1086010861
],
1086110862
"precision": "double",
10863+
"sort_spec": null,
1086210864
"target_neff": null,
1086310865
"track_freq": "central",
1086410866
"type": "ModeSpec"
@@ -11109,6 +11111,7 @@
1110911111
0
1111011112
],
1111111113
"precision": "double",
11114+
"sort_spec": null,
1111211115
"target_neff": null,
1111311116
"track_freq": "central",
1111411117
"type": "ModeSpec"
@@ -11187,6 +11190,46 @@
1118711190
],
1118811191
"type": "object"
1118911192
},
11193+
"ModeSortSpec": {
11194+
"additionalProperties": false,
11195+
"properties": {
11196+
"attrs": {
11197+
"default": {},
11198+
"type": "object"
11199+
},
11200+
"direction": {
11201+
"default": "descending",
11202+
"enum": [
11203+
"ascending",
11204+
"descending"
11205+
],
11206+
"type": "string"
11207+
},
11208+
"key": {
11209+
"default": "n_eff",
11210+
"enum": [
11211+
"TE_fraction",
11212+
"k_eff",
11213+
"mode_area",
11214+
"n_eff",
11215+
"wg_TE_fraction",
11216+
"wg_TM_fraction"
11217+
],
11218+
"type": "string"
11219+
},
11220+
"reference_value": {
11221+
"type": "number"
11222+
},
11223+
"type": {
11224+
"default": "ModeSortSpec",
11225+
"enum": [
11226+
"ModeSortSpec"
11227+
],
11228+
"type": "string"
11229+
}
11230+
},
11231+
"type": "object"
11232+
},
1119011233
"ModeSource": {
1119111234
"additionalProperties": false,
1119211235
"properties": {
@@ -11283,6 +11326,7 @@
1128311326
0
1128411327
],
1128511328
"precision": "double",
11329+
"sort_spec": null,
1128611330
"target_neff": null,
1128711331
"track_freq": "central",
1128811332
"type": "ModeSpec"
@@ -11461,6 +11505,13 @@
1146111505
],
1146211506
"type": "string"
1146311507
},
11508+
"sort_spec": {
11509+
"allOf": [
11510+
{
11511+
"$ref": "#/definitions/ModeSortSpec"
11512+
}
11513+
]
11514+
},
1146411515
"target_neff": {
1146511516
"exclusiveMinimum": 0,
1146611517
"type": "number"
@@ -16754,6 +16805,7 @@
1675416805
0
1675516806
],
1675616807
"precision": "double",
16808+
"sort_spec": null,
1675716809
"target_neff": null,
1675816810
"track_freq": "central",
1675916811
"type": "ModeSpec"

0 commit comments

Comments
 (0)