FRIBDAQ / rustogrammer

Histogram data from FRIB analysis pipeline.
Other
0 stars 0 forks source link

REST Request for gate/applications returns no applications #160

Closed rfoxkendo closed 6 months ago

rfoxkendo commented 6 months ago

Here's a return from .apply_list():

applications [{'spectrum': 'summary', 'gate': None},
 {'spectrum': 'ones.10', 'gate': None}, 
{'spectrum': 'ones.15', 'gate': None}, 
{'spectrum': 'ones.06', 'gate': None}, 
{'spectrum': 'ones.00', 'gate': None}, 
{'spectrum': 'ones.07', 'gate': None}, 
{'spectrum': 'twod', 'gate': None}, 
{'spectrum': 'ones.08', 'gate': None}, 
{'spectrum': 'ones.12', 'gate': None}, 
{'spectrum': 'ones.03', 'gate': None}, 
{'spectrum': 'ones.13', 'gate': None}, 
{'spectrum': 'ones.14', 'gate': None},
 {'spectrum': 'ones.11', 'gate': None},
 {'spectrum': 'ones.04', 'gate': None},
 {'spectrum': 'ones.05', 'gate': None}, 
{'spectrum': 'ones.02', 'gate': None}, 
{'spectrum': 'ones.01', 'gate': None}, 
{'spectrum': 'ones.09', 'gate': None}]

ones.00, in fact is gated on 'slice' not None.

rfoxkendo commented 6 months ago

I think I understand this and it's a feature not a bug. This is happening when configurations are restored from file. If, on restoration, spectra are deleted then the existing application is lost. and when applications are restored, there are no applications so no prompt about what to do with them. By asking spectra not to ovewrite existing spectra on restore, the result is as expected, confirming this.