Jonathan Sick currently the job JSON has a structure like this
|
"measurements": [
|
{
|
"metric": "AM1",
|
"value": 7.15136555363356
|
},
|
{
|
"metric": "AM2",
|
"value": 6.80681963522785
|
},
|
{
|
"metric": "PA1",
|
"value": 14.9064428565398
|
}
|
]
|
|
|
I imagine replacing the scalar measurement by the new measurement JSON:
data['measurements'][0].keys()
|
|
[u'blobs',
|
u'parameters',
|
u'metric',
|
u'value',
|
u'extras',
|
u'spec_name',
|
u'filter_name',
|
u'identifier',
|
u'unit']
|
|
For measurements that are done in different filters or depend on those we can have multiple measurements for
the same metric. That means we should have a list of measurements for each metric, e.g
|
"measurements": [
|
{
|
"metric": "AM1",
|
---> "measurement": [] <---
|
},
|
{
|
"metric": "AM2",
|
"measurement": []
|
},
|
{
|
"metric": "PA1",
|
"measurement": []
|
}
|
]
|
|
|
For the datasets produced for each job we also need the blob JSON, example:
|
data['blobs'][0].keys()
|
|
[u'identifier', u'data', u'name']
|
|
|
|
{
|
"ci_id": "2",
|
"ci_name": "demo",
|
"ci_dataset": "cfht",
|
"ci_label": "centos-7",
|
"date": "2016-06-02T05:21:57.298935Z",
|
"ci_url": "https://ci.lsst.codes/job/validate_drp/dataset=cfht,label=centos-7/2/",
|
"status": 0,
|
---> "blobs": {} <---
|
"measurements": [
|
{
|
"metric": "AM1",
|
"measurement": [ ]
|
},
|
{
|
"metric": "AM2",
|
"measurement": [ ]
|
},
|
{
|
"metric": "PA1",
|
"value": [ ]
|
}
|
],
|
|
|
if it sounds reasonable I can mock that to continue development.
The important thing for me now is to be able to retrieve the measurement JSON from the SQUASH API given the ci_id,
ci_dataset and the metric and then call an URL to load the corresponding bokeh app
https://angelo-squash-bokeh.lsst.codes/photometry?metric=PA1&ci_dataset=cfht&ci_id=1
|
|
Jonathan Sick currently the job JSON has a structure like this
{
},
{
},
{
}
]
I imagine replacing the scalar measurement by the new measurement JSON:
For measurements that are done in different filters or depend on those we can have multiple measurements for
the same metric. That means we should have a list of measurements for each metric, e.g
{
},
{
},
{
}
]
For the datasets produced for each job we also need the blob JSON, example:
{
{
},
{
},
{
}
],
if it sounds reasonable I can mock that to continue development.
The important thing for me now is to be able to retrieve the measurement JSON from the SQUASH API given the ci_id,
ci_dataset and the metric and then call an URL to load the corresponding bokeh app