Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DSI Parser Frontend
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
Show more breadcrumbs
DigitalDynamicMeasurement
DSI Parser Frontend
Commits
581842e6
Commit
581842e6
authored
1 year ago
by
Benedikt
Browse files
Options
Downloads
Patches
Plain Diff
changed issueTemplate include
parent
80bacb2d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+25
-2
25 additions, 2 deletions
main.py
with
25 additions
and
2 deletions
main.py
+
25
−
2
View file @
581842e6
...
@@ -16,6 +16,29 @@ from bokeh.events import ValueSubmit
...
@@ -16,6 +16,29 @@ from bokeh.events import ValueSubmit
import
numpy
as
np
import
numpy
as
np
colors
=
Category10
[
10
]
colors
=
Category10
[
10
]
VERSION
=
"
0.1.0
"
VERSION
=
"
0.1.0
"
issueTemplate
=
"""
There was an issue with the following unit conversion:
| Which unit | User entered input | Parsed input |
| ---------- | ------------------ | ------------ |
| Left unit | {} | {} |
| Right unit | {} | {} |
### Result/Expectation:
| Calculation | Result | Expectation | Did match |
|-------------|--------|-------------|-----------|
| Base unit | {} | | [ ] |
| factor * left = right | {} | | [ ] |
| factor * right = left | {} | | [ ] |
| factor * left = base | {} | | [ ] |
| factor * base = left | {} | | [ ] |
| factor * right = base | {} | | [ ] |
| factor * base = right | {} | | [ ] |
If there was an error with the calculation, please fill out the table above. Feel free to also add additional info here:
*Free text comment*
"""
class
dsiparserInput
():
class
dsiparserInput
():
def
__init__
(
self
,
defaultInput
=
""
):
def
__init__
(
self
,
defaultInput
=
""
):
...
@@ -222,8 +245,8 @@ class page():
...
@@ -222,8 +245,8 @@ class page():
def
createIssueUrl
(
self
):
def
createIssueUrl
(
self
):
quantitiesToAdd
=
[
self
.
dsiInput1
.
dsiInput
.
value
,
str
(
self
.
dsiInput1
.
dsiTree
),
self
.
dsiInput2
.
dsiInput
.
value
,
str
(
self
.
dsiInput2
.
dsiTree
),
str
(
self
.
dsiCompGraphGen
.
baseUnit
),
self
.
dsiCompGraphGen
.
scalfactorAB
,
self
.
dsiCompGraphGen
.
scalfactorBA
,
self
.
dsiCompGraphGen
.
scalfactorABase
,
self
.
dsiCompGraphGen
.
scalfactorBaseA
,
self
.
dsiCompGraphGen
.
scalfactorBBase
,
self
.
dsiCompGraphGen
.
scalfactorBaseB
]
quantitiesToAdd
=
[
self
.
dsiInput1
.
dsiInput
.
value
,
str
(
self
.
dsiInput1
.
dsiTree
),
self
.
dsiInput2
.
dsiInput
.
value
,
str
(
self
.
dsiInput2
.
dsiTree
),
str
(
self
.
dsiCompGraphGen
.
baseUnit
),
self
.
dsiCompGraphGen
.
scalfactorAB
,
self
.
dsiCompGraphGen
.
scalfactorBA
,
self
.
dsiCompGraphGen
.
scalfactorABase
,
self
.
dsiCompGraphGen
.
scalfactorBaseA
,
self
.
dsiCompGraphGen
.
scalfactorBBase
,
self
.
dsiCompGraphGen
.
scalfactorBaseB
]
t
emplate
Str
=
open
(
'
./issue.md
'
).
read
()
#issueT
emplate=open('./issue.md').read()
#TODO add file inculde instead of the str....
filledResult
=
t
emplate
Str
.
format
(
*
quantitiesToAdd
)
filledResult
=
issueT
emplate
.
format
(
*
quantitiesToAdd
)
filledTitle
=
f
'
Unexpected comparison result:
{
self
.
dsiInput1
.
dsiInput
.
value
}
to
{
self
.
dsiInput2
.
dsiInput
.
value
}
'
filledTitle
=
f
'
Unexpected comparison result:
{
self
.
dsiInput1
.
dsiInput
.
value
}
to
{
self
.
dsiInput2
.
dsiInput
.
value
}
'
issueUrl
=
r
'
https://gitlab1.ptb.de/digitaldynamicmeasurement/dsi-parser-frontend/-/issues/new?
'
issueUrl
=
r
'
https://gitlab1.ptb.de/digitaldynamicmeasurement/dsi-parser-frontend/-/issues/new?
'
title
=
quote
(
filledTitle
)
title
=
quote
(
filledTitle
)
...
...
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