Skip to content

Commit

Permalink
first test of thomson mappings. I have no clue if it works or not sin…
Browse files Browse the repository at this point in the history
…ce to be honest the TDI hash should not be needed if one truly uses the whole string inside a mdsvalue command. The TDI hash was primarily used for exp2itm to know that the string was to be interpreted as a mdsvalue input and not as a signal name under jet() method.....
  • Loading branch information
rui-coelho committed Oct 15, 2024
1 parent 9a69e55 commit fd25c70
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 4 deletions.
65 changes: 64 additions & 1 deletion mappings/thomson_scattering/globals.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,68 @@
{
"Comment": "Add any variables in here that are needed by your mappings",
"Templating": "These can be used for substitution in the signal names",
"Hello": "World"
"Hello": "World",
"CH_NAMES": [
"CH1",
"CH2",
"CH3",
"CH4",
"CH5",
"CH6",
"CH7",
"CH8",
"CH9",
"CH10",
"CH11",
"CH12",
"CH13",
"CH14",
"CH15",
"CH16",
"CH17",
"CH18",
"CH19",
"CH20",
"CH21",
"CH22",
"CH23",
"CH24",
"CH25",
"CH26",
"CH27",
"CH28",
"CH29",
"CH30",
"CH31",
"CH32",
"CH33",
"CH34",
"CH35",
"CH36",
"CH37",
"CH38",
"CH39",
"CH40",
"CH41",
"CH42",
"CH43",
"CH44",
"CH45",
"CH46",
"CH47",
"CH48",
"CH49",
"CH50",
"CH51",
"CH52",
"CH53",
"CH54",
"CH55",
"CH56",
"CH57",
"CH58",
"CH59",
"CH60",
"CH61"
]
}
66 changes: 63 additions & 3 deletions mappings/thomson_scattering/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,77 @@
},
"ids_properties/provider": {
"MAP_TYPE": "VALUE",
"VALUE": "Gabor Szepesi",
"VALUE": "Rui Coelho",
"COMMENT": "Automatic from PPF metadata"
},
"ids_properties/creation_date": {
"MAP_TYPE": "VALUE",
"VALUE": "TO BE ADDED",
"COMMENT": "Automatic from PPF metadata"
"VALUE": "11.11.2024",
"COMMENT": "Ideally from system date..."
},
"ids_properties/node": {
"MAP_TYPE": "VALUE",
"VALUE": 1,
"COMMENT": "Provenance for the whole IDS"
},
"channel": {
"MAP_TYPE": "VALUE",
"VALUE": "{{ length(CH_NAMES) }}"
},
"channel[#]/name": {
"MAP_TYPE": "VALUE",
"VALUE": "{{ at(CH_NAMES, indices.0) }}"
},
"channel[#]/position/r": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "MDSPLUS",
"ARGS": {
"signal": "%TDI%_aux=jet(\"PPF/HRTS/TE\",{{ SHOT }}); _sig = dim_of(_aux,0)"
},
"COMMENT": "The final syntax of this string may change"
},
"channel[#]/position/z": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "MDSPLUS",
"ARGS": {
"signal": "%TDI%_aux=jet(\"PPF/HRTS/Z\",{{ SHOT }}); _sig = value_of(_aux)"
},
"COMMENT": "The final syntax of this string may change"
},
"channel[#]/position/phi": {
"MAP_TYPE": "VALUE",
"VALUE": 0
},
"channel[#]/t_e/data": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "MDSPLUS",
"ARGS": {
"signal": "%TDI%_aux=jet(\"PPF/HRTS/TE\",{{ SHOT }}); _sig = value_of(_aux)"
},
"COMMENT": "The final syntax of this string may change"
},
"channel[#]/t_e/time": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "MDSPLUS",
"ARGS": {
"signal": "%TDI%_aux=jet(\"PPF/HRTS/TE\",{{ SHOT }}); _sig = dim_of(_aux,1)"
},
"COMMENT": "The final syntax of this string may change"
},
"channel[#]/n_e/data": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "MDSPLUS",
"ARGS": {
"signal": "%TDI%_aux=jet(\"PPF/HRTS/NE\",{{ SHOT }}); _sig = value_of(_aux)"
},
"COMMENT": "The final syntax of this string may change"
},
"channel[#]/n_e/time": {
"MAP_TYPE": "PLUGIN",
"PLUGIN": "MDSPLUS",
"ARGS": {
"signal": "%TDI%_aux=jet(\"PPF/HRTS/NE\",{{ SHOT }}); _sig = dim_of(_aux,1)"
},
"COMMENT": "The final syntax of this string may change"
}
}

0 comments on commit fd25c70

Please sign in to comment.