Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python_DSI_Parser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Benedikt
python_DSI_Parser
Commits
ab65ddfe
Commit
ab65ddfe
authored
1 year ago
by
Vanessa Stehr
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: detect empty "per"s
parent
f06eac96
No related branches found
No related tags found
No related merge requests found
Pipeline
#31559
passed
1 year ago
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dist/dsiParser-1.1.0-py3-none-any.whl
+0
-0
0 additions, 0 deletions
dist/dsiParser-1.1.0-py3-none-any.whl
dist/dsiParser-1.1.0.tar.gz
+0
-0
0 additions, 0 deletions
dist/dsiParser-1.1.0.tar.gz
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
src/dsiParser.py
+6
-0
6 additions, 0 deletions
src/dsiParser.py
with
7 additions
and
1 deletion
dist/dsiParser-1.1.0-py3-none-any.whl
0 → 100644
+
0
−
0
View file @
ab65ddfe
File added
This diff is collapsed.
Click to expand it.
dist/dsiParser-1.1.0.tar.gz
0 → 100644
+
0
−
0
View file @
ab65ddfe
File added
This diff is collapsed.
Click to expand it.
setup.cfg
+
1
−
1
View file @
ab65ddfe
[metadata]
name
=
dsiParser
version
=
1.
0
.0
version
=
1.
1
.0
description
=
Parse D-SI unit strings to LaTeX
long_description
=
file: README.md
...
...
This diff is collapsed.
Click to expand it.
src/dsiParser.py
+
6
−
0
View file @
ab65ddfe
...
...
@@ -66,6 +66,12 @@ class dsiParser:
tree
=
[]
warningMessages
=
[]
tree
=
dsiString
.
split
(
r
"
\per
"
)
for
subtree
in
tree
:
if
len
(
subtree
)
==
0
:
warningMessages
.
append
(
_warn
(
r
"
The dsi string contains a \per missing a numerator or denominator!
"
+
f
"
Given string:
{
dsiString
}
"
,
RuntimeWarning
))
tree
.
remove
(
subtree
)
if
len
(
tree
)
>
2
:
warningMessages
.
append
(
_warn
(
r
"
The dsi string contains more than one \per, does not
"
+
f
"
match specs! Given string:
{
dsiString
}
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment