Compare View
Commits (7)
Showing
6 changed files
Show diff stats
generic_data/Functions/functions.xml
... | ... | @@ -102,28 +102,28 @@ |
102 | 102 | <prompts> |
103 | 103 | <prompt>input window time in secs</prompt> |
104 | 104 | </prompts> |
105 | - <info_brief>covariance() function for two params</info_brief> | |
105 | + <info_brief>covariance() function for two params. The second parameter is resampled to the times of the first one.</info_brief> | |
106 | 106 | <new_kernel>#covariance</new_kernel> |
107 | 107 | </function> |
108 | 108 | <function name="pearson_(,,)" args="2" kind="sliding" group="stat"> |
109 | 109 | <prompts> |
110 | 110 | <prompt>input window time in secs</prompt> |
111 | 111 | </prompts> |
112 | - <info_brief>Pearson coefficient of two parameters</info_brief> | |
112 | + <info_brief>Pearson coefficient of two parameters. The second parameter is resampled to the times of the first one.</info_brief> | |
113 | 113 | <new_kernel>#pearson</new_kernel> |
114 | 114 | </function> |
115 | 115 | <function name="kendall_(,,)" args="2" kind="sliding" group="stat"> |
116 | 116 | <prompts> |
117 | 117 | <prompt>input window time in secs</prompt> |
118 | 118 | </prompts> |
119 | - <info_brief>Kendall coefficient of two parameters</info_brief> | |
119 | + <info_brief>Kendall coefficient of two parameters. The second parameter is resampled to the times of the first one.</info_brief> | |
120 | 120 | <new_kernel>#kendall</new_kernel> |
121 | 121 | </function> |
122 | 122 | <function name="spearman_(,,)" args="2" kind="sliding" group="stat"> |
123 | 123 | <prompts> |
124 | 124 | <prompt>input window time in secs</prompt> |
125 | 125 | </prompts> |
126 | - <info_brief>Spearman coefficient of two parameters</info_brief> | |
126 | + <info_brief>Spearman coefficient of two parameters. The second parameter is resampled to the times of the first one.</info_brief> | |
127 | 127 | <new_kernel>#spearman</new_kernel> |
128 | 128 | </function> |
129 | 129 | <!-- <function name="shiftN_(,)" args="1" kind="amda"> |
... | ... |
index.html
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | <head> |
4 | 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
5 | 5 | <title>Welcome on Amda</title> |
6 | -<link href="js/resources/css/AccueilAmda.css" rel="stylesheet" type="text/css"> | |
6 | +<link href="js/resources/css/AccueilAmda.css?v=4" rel="stylesheet" type="text/css"> | |
7 | 7 | <!-- Login --> |
8 | 8 | <link rel="stylesheet" type="text/css" href="js/resources/css/login.css" /> |
9 | 9 | <link rel="icon" href="favicon.ico" type="image/x-icon"> |
... | ... |
js/app/views/IntervalUI.js
... | ... | @@ -240,6 +240,21 @@ Ext.define('amdaUI.IntervalUI', { |
240 | 240 | labelAlign: 'left', |
241 | 241 | labelWidth: 60, |
242 | 242 | listeners: { |
243 | + afterrender: function (field) { | |
244 | + field.inputEl.on('paste', function (e) { | |
245 | + | |
246 | + var clipboardData = e.browserEvent.clipboardData || window.clipboardData; | |
247 | + var pastedData = clipboardData.getData('text'); | |
248 | + var regex = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/; | |
249 | + var match = pastedData.match(regex); | |
250 | + | |
251 | + if (match) { | |
252 | + e.preventDefault(); | |
253 | + var formattedDate = `${match[1]}/${match[2]}/${match[3]} ${match[4]}:${match[5]}:${match[6]}.${match[7]}`; | |
254 | + field.setValue(formattedDate); | |
255 | + } | |
256 | + }); | |
257 | + }, | |
243 | 258 | change: onChangeField, |
244 | 259 | focus: function(field) { |
245 | 260 | this.activeField = fieldId; |
... | ... |
js/app/views/TimeTableUI.js
... | ... | @@ -519,6 +519,24 @@ Ext.define('amdaUI.TimeTableUI', { |
519 | 519 | ] |
520 | 520 | }; |
521 | 521 | var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', { |
522 | + listeners: { | |
523 | + beforeedit: function (editor, context) { | |
524 | + context.column.getEditor().on('render', function (field) { | |
525 | + field.inputEl.on('paste', function (e) { | |
526 | + var clipboardData = e.browserEvent.clipboardData || window.clipboardData; | |
527 | + var pastedData = clipboardData.getData('text'); | |
528 | + var regex = /^(\d{4})\/(\d{2})\/(\d{2}) (\d{2}):(\d{2}):(\d{2})\.(\d{3})$/; | |
529 | + var match = pastedData.match(regex); | |
530 | + | |
531 | + if (match) { | |
532 | + e.preventDefault(); | |
533 | + var formattedDate = `${match[1]}-${match[2]}-${match[3]}T${match[4]}:${match[5]}:${match[6]}.${match[7]}`; | |
534 | + field.setValue(formattedDate); | |
535 | + } | |
536 | + }); | |
537 | + }); | |
538 | + } | |
539 | + }, | |
522 | 540 | onEditComplete: function (ed, value, startValue) { |
523 | 541 | var me = this, |
524 | 542 | activeColumn = me.getActiveColumn(), |
... | ... |
js/resources/css/AccueilAmda.css
... | ... | @@ -5,6 +5,27 @@ body{ |
5 | 5 | text-align: left; |
6 | 6 | background-color: #FFF; |
7 | 7 | } |
8 | + | |
9 | +/* | |
10 | + content: "We're currently having problems accessing one of our storage bays. \A Most of MMS data and Solar Orbiter/EAS data are not currently available. \ASorry for the inconvenience"; | |
11 | + content: "A maintenance will take place on Thursday 21 November from 12:00 CET to 14:00 CET on our network infrastructure. \A Access to AMDA will be interrupted during this period. \ASorry for the inconveniences."; | |
12 | + */ | |
13 | + | |
14 | + | |
15 | +/* body:before { | |
16 | + content: "A maintenance will take place on Thursday 21 November from 12:00 CET to 14:00 CET on our network infrastructure. \A Access to AMDA will be interrupted during this period. \ASorry for the inconveniences."; | |
17 | + background: rgba(255, 0, 0, 0.349); | |
18 | + color: white; | |
19 | + width: 100%; | |
20 | + display: block; | |
21 | + text-align: center; | |
22 | + position: absolute; | |
23 | + z-index: 10; | |
24 | + font-size: 10px; | |
25 | + font-weight: bold; | |
26 | + white-space: pre-wrap; | |
27 | +} */ | |
28 | + | |
8 | 29 | /*•••••••••••••• couvercle et trou ••••••••••••*/ |
9 | 30 | |
10 | 31 | #trou{ |
... | ... |
php/WebServices/WebServer.php
... | ... | @@ -223,27 +223,7 @@ class WebServer |
223 | 223 | { |
224 | 224 | $param = new stdClass; |
225 | 225 | |
226 | - if (preg_match("#^ws_#",$paramId)) | |
227 | - { | |
228 | - $res = $this->paramLoader->getDerivedParameterNameFromId($paramId); | |
229 | - | |
230 | - if (!$res["success"]) { | |
231 | - $this->throwError("serverError", "Not available derived parameter $paramId"); | |
232 | - } | |
233 | - $param->paramid = "ws_".$res['name']; | |
234 | - } | |
235 | - else if (preg_match("#^wsd_#",$paramId)) | |
236 | - { | |
237 | - $res = $this->paramLoader->getUploadedParameterNameFromId($paramId); | |
238 | - | |
239 | - if (!$res["success"]){ | |
240 | - $this->throwError("serverError", "Not available parameter $paramId"); | |
241 | - } | |
242 | - $param->paramid = "wsd_".$res['name']; | |
243 | - } | |
244 | - else { | |
245 | - $param->paramid = $paramId; | |
246 | - } | |
226 | + $param->paramid = $paramId; | |
247 | 227 | $params[] = $param; |
248 | 228 | } |
249 | 229 | |
... | ... | @@ -460,6 +440,7 @@ class WebServer |
460 | 440 | $dim_1 = empty($dim_1) ? 1 : intval($dim_1); |
461 | 441 | $dim_2 = $paramNode->getAttribute('dim_2'); |
462 | 442 | $dim_2 = empty($dim_2) ? 1 : intval($dim_2); |
443 | + $ws_id = "ws_".$paramNode->getAttribute('name'); | |
463 | 444 | $paramNode->setAttribute('size', $dim_1 * $dim_2); |
464 | 445 | |
465 | 446 | $display_type = 'timeseries'; |
... | ... | @@ -470,16 +451,21 @@ class WebServer |
470 | 451 | $display_type = 'spectrogram'; |
471 | 452 | } |
472 | 453 | $paramNode->setAttribute('display_type', $display_type); |
454 | + $paramNode->setAttribute('internal_id', $paramNode->getAttribute('xml:id')); | |
455 | + $paramNode->setAttribute('xml:id', $ws_id); | |
473 | 456 | } |
474 | 457 | // => In parameters from an uploaded file |
475 | 458 | $paramNodes = $dom->getElementsByTagName("mydata"); |
476 | 459 | foreach ($paramNodes as $paramNode) { |
477 | 460 | // size already exists |
461 | + $wsd_id = "wsd_".$paramNode->getAttribute('name'); | |
478 | 462 | $display_type = 'timeseries'; |
479 | 463 | if ($paramNode->getAttribute('plottype') == 'Spectra') { |
480 | 464 | $display_type = 'spectrogram'; |
481 | 465 | } |
482 | 466 | $paramNode->setAttribute('display_type', $display_type); |
467 | + $paramNode->setAttribute('internal_id', $paramNode->getAttribute('xml:id')); | |
468 | + $paramNode->setAttribute('xml:id', $wsd_id); | |
483 | 469 | } |
484 | 470 | $dom->save(WSConfigClass::getWsResultDir().$wsParamDst); |
485 | 471 | |
... | ... |