Closed prjemian closed 3 years ago
The report could also indicate which screen file.
The source .adl
(full) file name is available (in output_handler.py
) as block.main.given_filename
), except for these methods:
(base) prjemian@zap:~/.../BCDA-APS/adl2pydm$ grep "def write_" adl2pydm/output_handler.py | grep -v block
def write_color_element(self, xml_element, color, **kwargs):
def write_ui(self, screen, output_path):
def write_channel(self, parent, channel):
def write_customwidgets(self, parent):
def write_geometry(self, parent, geom):
def write_tooltip(self, parent, tip):
Now, warnings (note a couple errors also) include file name:
(adl2pydm-dev) prjemian@zap:~/.../BCDA-APS/adl2pydm$ adl2pydm -d /tmp/screens /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/*.adl
ERROR:adl2pydm.cli:error processing /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/ADAM_4015_input_setup.adl: 'utf-8' codec can't decode byte 0xb0 in position 3278: invalid start byte
WARNING:adl2pydm.output_handler:(cartesian plot,L129,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/arrayPlot8.adl) number of plot points must be an integer, using 1200 points instead of '$(P)$(C).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L90,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/arrayPlotNoX.adl) number of plot points must be an integer, using 1200 points instead of '$(N)'
WARNING:adl2pydm.output_handler:(cartesian plot,L196,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/compress_more.adl) number of plot points must be an integer, using 1200 points instead of '$(P)$(Q).NSAM'
WARNING:adl2pydm.output_handler:(valuator,L307,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Filter.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L351,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Filter.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L141,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Gain.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L233,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Gain.adl) truncation warning: precision 0.001 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L336,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Gain.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L502,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Gain.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L697,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Gain.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L203,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Stabilizer.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L854,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/dsp9660Stabilizer.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L344,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/EMW_PS.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(choice button,L721,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore335_full.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L1817,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore335_full.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L460,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore335_more.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L1190,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore335_more.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L460,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_full.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L1671,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_full.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L2000,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_full.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L2329,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_full.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L460,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_more.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L1671,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_more.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L2016,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_more.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(choice button,L2345,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore336_more.adl) stacking 'row column' not supported, using 'row'
WARNING:adl2pydm.output_handler:(valuator,L358,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/MPC_TSP.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L102,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/Nano2k.adl) truncation warning: precision 1.2 truncated to 1
ERROR:adl2pydm.cli:error processing /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/Oxford_CS800_hourplot.adl: 'display[0]'
WARNING:adl2pydm.output_handler:(cartesian plot,L105,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/pf4_otherHelp.adl) number of plot points must be an integer, using 1200 points instead of 'xxx:pf4:E.NELM'
WARNING:adl2pydm.output_handler:(cartesian plot,L90,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/PSOarrayPlot.adl) number of plot points must be an integer, using 1200 points instead of '$(Y).NORD'
WARNING:adl2pydm.output_handler:(cartesian plot,L166,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/recordPV.adl) number of plot points must be an integer, using 1200 points instead of '$(P)$(Q)$(R).NSAM'
WARNING:adl2pydm.output_handler:(cartesian plot,L1520,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalc_plot.adl) number of plot points must be an integer, using 1200 points instead of '$(P)$(C).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L90,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlot.adl) number of plot points must be an integer, using 1200 points instead of '$(P)$(C).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L116,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N1).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L147,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N6).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L178,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N2).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L209,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N7).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L240,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N3).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L271,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N8).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L302,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N5).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L333,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N10).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L364,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N4).NUSE'
WARNING:adl2pydm.output_handler:(cartesian plot,L395,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/userArrayCalcPlots10.adl) number of plot points must be an integer, using 1200 points instead of '$(P)userArrayCalc$(N9).NUSE'
WARNING:adl2pydm.output_handler:(valuator,L201,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L283,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L365,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L447,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L529,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L611,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L693,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L775,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L201,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L283,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L365,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L447,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L529,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L611,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L693,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L775,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xiahsc_full.adl) truncation warning: precision 0.01 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L351,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xxIcbAdc.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L284,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xxIcbAmp.adl) truncation warning: precision 0.0001 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L860,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xxIcbAmp.adl) truncation warning: precision 0.1 truncated to 0
WARNING:adl2pydm.output_handler:(valuator,L806,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xxIcbTCA.adl) truncation warning: precision 0.001 truncated to 0
WARNING:adl2pydm.output_handler:(cartesian plot,L1519,/tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/yyArrayCalc_plot.adl) number of plot points must be an integer, using 1200 points instead of '$(P)$(C).NUSE'
note:
ERROR:adl2pydm.cli:error processing /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/ADAM_4015_input_setup.adl: 'utf-8' codec can't decode byte 0xb0 in position 3278: invalid start byte
refers to textix="-200 to 200 �C"
The other error is:
ERROR:adl2pydm.cli:error processing /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/Oxford_CS800_hourplot.adl: 'display[0]'
Summary of warnings (quantity: number of warnings). They reduce to three distinct cases:
quantity | MEDM widget | line | example adl file | warning |
---|---|---|---|---|
38 | cartesian plot | L90 | /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/arrayPlotNoX.adl | number of plot points must be an integer, using 1200 points instead of '$(N)' |
24 | choice button | L721 | /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/LakeShore335_full.adl | stacking 'row column' not supported, using 'row' |
64 | valuator | L284 | /tmp/docker_ioc/custom-synapps-6.2-ad-3.10/screens/adl/xxIcbAmp.adl | truncation warning: precision 0.0001 truncated to 0 |
The warning about row
substituting for row column
stacking is acceptable. Should we request a row column
stacking feature for PyDM?
Can PyDM accept a PV to control the number of plot points? (for MEDM cartesian plot
widget)
Can PyDM accept a float for precision? (MEDM valuator
widget) Precision seems as if it should be an integer value while a float shows a roundoff level. In that case, we should compute an integer by -log10(float_precision)
but what to do for precision 1.2 truncated to 1
reported while converting from std-R3-6-2/stdApp/op/adl/Nano2k.adl
?
valuator {
object {
x=3
y=136
width=243
height=35
}
control {
chan="$(P)$(S)$(p)_set_position.VAL"
clr=14
bclr=3
}
label="outline"
clrmod="alarm"
dPrecision=1.200000
}
New issue filed for each type of warning and error. Consider this as resolved once CI passes.