Bug#1087072: sasview: Python SyntaxWarning
Graham Inggs
ginggs at debian.org
Fri Nov 8 15:44:00 GMT 2024
Source: sasview
Version: 5.0.6-4
User: debian-python at lists.debian.org
Usertags: syntaxwarning
Hi Maintainer
The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].
Regards
Graham
[1] https://piuparts.debian.org/sid/source/s/sasview.html
Setting up python3-sasview (5.0.6-4) ...
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/DataOperationUtilityPanel.py:99:
SyntaxWarning: invalid escape sequence '\d'
new_title = re.sub('\d{10}\.\d{2}', '', str(key_id))
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/DensityPanel.py:66:
SyntaxWarning: invalid escape sequence '\-'
rx = QtCore.QRegExp("[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?")
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:161:
SyntaxWarning: invalid escape sequence '\d'
validat_regex_pos = QtCore.QRegExp('^[+]?([.]\d+|\d+([.]\d+)?)$')
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:170:
SyntaxWarning: invalid escape sequence '\.'
validat_regexbetween0_1 = QtCore.QRegExp('^(0(\.\d*)*|1(\.0+)?)$')
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:216:
SyntaxWarning: invalid escape sequence '\d'
validat_regex_q = QtCore.QRegExp('^1000$|^[+]?(\d{1,3}([.]\d+)?)$')
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:221:
SyntaxWarning: invalid escape sequence '\d'
validat_regex_int = QtCore.QRegExp('^[2-9]|[1-9]\d{1,2}$')
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:1432:
SyntaxWarning: invalid escape sequence '\A'
data.xaxis('\\rm{Q_{x}}', '\AA^{-1}')
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:1523:
SyntaxWarning: invalid escape sequence '\A'
ax.set_xlabel('x ($\A{}$)'.format(data.pos_unit))
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:1524:
SyntaxWarning: invalid escape sequence '\A'
ax.set_ylabel('z ($\A{}$)'.format(data.pos_unit))
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/GenericScatteringCalculator.py:1525:
SyntaxWarning: invalid escape sequence '\A'
ax.set_zlabel('y ($\A{}$)'.format(data.pos_unit))
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/KiessigPanel.py:25:
SyntaxWarning: invalid escape sequence '\-'
rx = QtCore.QRegExp("[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?")
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:132:
SyntaxWarning: invalid escape sequence '\d'
input_wavelength = re.match('\d+\.?\d*', input_string)
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:141:
SyntaxWarning: invalid escape sequence '\d'
interval_wavelength = re.match('^\d+\.?\d*\s*-\s*\d+\.?\d*$',
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:152:
SyntaxWarning: invalid escape sequence '\d'
re.findall('\d+\.?\d*', interval_wavelength.group())
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:171:
SyntaxWarning: invalid escape sequence '\d'
pattern = '^\d+\.?\d*(|;\s*\d+)$'
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:187:
SyntaxWarning: invalid escape sequence '\d'
pattern = '^\d+\.?\d*\s*-\s*\d+\.?\d*(|;\s*\d+)$'
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:212:
SyntaxWarning: invalid escape sequence '\d'
pattern = '^\d+\.?\d*,\s*\d+\.?\d*$'
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:230:
SyntaxWarning: invalid escape sequence '\d'
pattern = '^-?\d+\.?\d*(,\s*-?\d+\.?\d*)*$'
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/ResolutionCalculatorPanel.py:269:
SyntaxWarning: invalid escape sequence '\d'
pattern = '^\d+\.?\d*(|,\s*\d+)$'
/usr/lib/python3/dist-packages/sas/qtgui/Calculators/SldPanel.py:126:
SyntaxWarning: invalid escape sequence '\-'
rx = QtCore.QRegExp("[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?")
/usr/lib/python3/dist-packages/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py:131:
SyntaxWarning: invalid escape sequence '\A'
self.axes.set_xlabel("Q [$\AA^{-1}$]")
More information about the debian-science-maintainers
mailing list