Comments (10)
The report could also indicate which screen file.
from adl2pydm.
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):
from adl2pydm.
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'
from adl2pydm.
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"
from adl2pydm.
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]'
from adl2pydm.
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 |
from adl2pydm.
The warning about row
substituting for row column
stacking is acceptable. Should we request a row column
stacking feature for PyDM?
from adl2pydm.
Can PyDM accept a PV to control the number of plot points? (for MEDM cartesian plot
widget)
from adl2pydm.
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
}
from adl2pydm.
New issue filed for each type of warning and error. Consider this as resolved once CI passes.
from adl2pydm.
Related Issues (20)
- Warnings could indicate which screen file.
- utf8 codec error when reading textix HOT 2
- error processing display[0] HOT 1
- Can PyDM accept a PV to control the number of plot points? (for MEDM `cartesian plot` widget) HOT 1
- Can PyDM accept a float for precision? (MEDM `valuator` widget) HOT 2
- Should we request a `row column` stacking feature for PyDM?
- some screens showing rectangles visible by dynamic attribute HOT 3
- Publish new releases on conda-forge HOT 4
- (polygon widget): Point should be output as Python tuple(number, number) HOT 3
- Widgets do not stretch when screen is stretched HOT 5
- Use PyDMAbsoluteGeometry as top-level widget for screens HOT 1
- remove pyqtdesignerpath import test from conda-forge recipe HOT 2
- Add badges to repository README HOT 1
- MEDM composite widget
- prefer pathlib to os.path
- custom badge for ANL license HOT 2
- publish conda package HOT 2
- apply black code style in CI
- refactor packaging per PEP518
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adl2pydm.