Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
73e969a
add exception classes
bnavigator May 3, 2020
e07206a
migrate analysis to new exceptions
bnavigator May 3, 2020
1f356f2
migrate math to new exceptions
bnavigator May 3, 2020
a8edfb4
migrate synthesis to the new exceptions
bnavigator May 3, 2020
de6e3df
migrate transform to new exceptions
bnavigator May 4, 2020
37e45d1
unify exception call signature
bnavigator May 4, 2020
2f44753
exception messages extracted from docstrings
repagh May 5, 2020
89429ad
count exception messages in synthesis
repagh May 5, 2020
0fd2ea5
Only on indexError should we report unhandled code
repagh May 5, 2020
d1b9ab1
simplify negative info parameter checks
bnavigator May 5, 2020
dbf643b
actually test error message/info matching. Did reveal some fixes to
repagh May 5, 2020
42cfb49
only check docstring if provided
bnavigator May 5, 2020
b9bfaae
correct sb01bd copy and paste error
repagh May 5, 2020
8b5b8f9
rework exception docstring parser
bnavigator May 5, 2020
ed027fb
fix python 2 compatibility in regexp
bnavigator May 6, 2020
1877bc3
adding a more extensive check of docstring parsing
repagh May 6, 2020
d2f684d
extend the parser to warnings
bnavigator May 6, 2020
0e8d63c
update exceptions doc and test [skip ci]
bnavigator May 6, 2020
7ad1517
more work on exception and warning handling
bnavigator May 7, 2020
18f054e
more cleanup, including file attributes for source files
bnavigator May 7, 2020
a44c952
dont assertRaisesRegex in Py2
bnavigator May 7, 2020
d81c7d1
optional type
bnavigator May 7, 2020
ad24193
typo in range [skip ci]
bnavigator May 7, 2020
ec8c968
only parse docstring when iwarn or info
bnavigator May 7, 2020
c0b1069
bring synthesis.py closer to numpydoc
bnavigator May 7, 2020
ad28baa
minor cosmetics in math.py and synthesis.py docstrings [skip ci]
bnavigator May 7, 2020
82b653a
fix infospec detection regex
bnavigator May 7, 2020
8f60923
fix iwarn catchall and checkvars initialization
bnavigator May 7, 2020
91fb7e6
revert file mode changes for py files [skip ci]
bnavigator May 7, 2020
fd74855
comma in mb05nd docstring [skip ci]
bnavigator May 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix infospec detection regex
  • Loading branch information
bnavigator committed May 7, 2020
commit 82b653a9bc6b96845045e10eca1a9c6fde22e1e1
2 changes: 1 addition & 1 deletion slycot/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _parse_docsection(section_name, docstring, checkvars):
# new infospec
if slycot_error:
imatch = re.match(
r'(\s{' + str(error_indent + 1) + r',}):(.*):\s*(.*)', l)
r'(\s{' + str(error_indent + 1) + r',}):(.+):\s*(.*)', l)
if imatch:
infospec_indent = len(imatch.group(1))
infospec = imatch.group(2)
Expand Down