[ ] Feature request (request for change which adds functionality)
Expected Behavior
Should not throw a ValueError.
Current Behavior
% sca.py eagle64 0x1 gpio-set-direction 0x0fffff8f
Open pickled address table if available /opt/cmsgemos/etc/maps/amc_address_table_top.pickle...
>>>>>>> HOLA, I'M SCA CONTROLLER TESTER :) <<<<<<<
Initial value to write: 1, register GEM_AMC.SLOW_CONTROL.SCA.MANUAL_CONTROL.LINK_ENABLE_MASK
Traceback (most recent call last):
File "/opt/reg_utils/bin/sca.py", line 114, in <module>
main()
File "/opt/reg_utils/bin/sca.py", line 99, in main
directionMask = parseInt(sys.argv[3])
File "/usr/lib/python2.7/site-packages/reg_utils/reg_interface/common/reg_xml_parser.py", line 282, in parseInt
return int(string)
ValueError: invalid literal for int() with base 10: 'gpio-set-direction'
% sca.py eagle64 0x1 gpio-set-output 0xf00000f0
Open pickled address table if available /opt/cmsgemos/etc/maps/amc_address_table_top.pickle...
>>>>>>> HOLA, I'M SCA CONTROLLER TESTER :) <<<<<<<
Initial value to write: 1, register GEM_AMC.SLOW_CONTROL.SCA.MANUAL_CONTROL.LINK_ENABLE_MASK
Traceback (most recent call last):
File "/opt/reg_utils/bin/sca.py", line 114, in <module>
main()
File "/opt/reg_utils/bin/sca.py", line 107, in main
outputData = parseInt(sys.argv[3])
File "/usr/lib/python2.7/site-packages/reg_utils/reg_interface/common/reg_xml_parser.py", line 282, in parseInt
return int(string)
ValueError: invalid literal for int() with base 10: 'gpio-set-output'
Brief summary of issue
sca.py
unable to setgpio
parameters of the SCA.Types of issue
Expected Behavior
Should not throw a
ValueError
.Current Behavior
Using a system install presently:
Steps to Reproduce (for bugs)
gem904daq01
Possible Solution (for bugs)
Dump the position sensitive argument list and use an instance of the
OptParser
class.Context (for feature requests)
The SCA controls the
vfat3
reset lines now. These outputs must be properly set or the VFATs will be held in hard reset otherwise.Your Environment
/bin/zsh