Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
0f15bff2
Commit
0f15bff2
authored
3 years ago
by
David Schäfer
Browse files
Options
Downloads
Plain Diff
Merge branch 'kw-rename' into 'develop'
Kw rename See merge request
!329
parents
f322a233
dad26d14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!370
Release 2.0
,
!329
Kw rename
Pipeline
#49074
passed with stage
in 1 minute and 1 second
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
saqc/core/register.py
+1
-1
1 addition, 1 deletion
saqc/core/register.py
saqc/core/translator/dmptranslator.py
+2
-2
2 additions, 2 deletions
saqc/core/translator/dmptranslator.py
tests/core/test_translator.py
+3
-3
3 additions, 3 deletions
tests/core/test_translator.py
with
6 additions
and
6 deletions
saqc/core/register.py
+
1
−
1
View file @
0f15bff2
...
...
@@ -267,7 +267,7 @@ def _restoreFlags(flags: Flags, old_state: CallState):
meta
=
{
"
func
"
:
old_state
.
func_name
,
"
args
"
:
old_state
.
args
,
"
k
eyword
s
"
:
old_state
.
kwargs
,
"
k
warg
s
"
:
old_state
.
kwargs
,
}
new_columns
=
flags
.
columns
.
difference
(
old_state
.
flags
.
columns
)
...
...
This diff is collapsed.
Click to expand it.
saqc/core/translator/dmptranslator.py
+
2
−
2
View file @
0f15bff2
...
...
@@ -104,7 +104,7 @@ class DmpTranslator(Translator):
meta
=
{
"
func
"
:
comment
[
"
test
"
],
"
k
eyword
s
"
:
{
"
comment
"
:
comment
[
"
comment
"
],
"
cause
"
:
cause
},
"
k
warg
s
"
:
{
"
comment
"
:
comment
[
"
comment
"
],
"
cause
"
:
cause
},
}
field_history
.
append
(
histcol
,
meta
=
meta
)
...
...
@@ -148,7 +148,7 @@ class DmpTranslator(Translator):
# extract from meta
meta
=
history
.
meta
[
col
]
keywords
=
meta
.
get
(
"
k
eyword
s
"
,
{})
keywords
=
meta
.
get
(
"
k
warg
s
"
,
{})
comment
=
json
.
dumps
(
{
"
test
"
:
meta
.
get
(
"
func
"
,
"
unknown
"
),
...
...
This diff is collapsed.
Click to expand it.
tests/core/test_translator.py
+
3
−
3
View file @
0f15bff2
...
...
@@ -89,13 +89,13 @@ def test_dmpTranslator():
flags
[:,
"
var2
"
]
=
BAD
history1
=
flags
.
history
[
"
var1
"
]
history1
.
meta
[
1
].
update
({
"
func
"
:
"
flagFoo
"
,
"
k
eyword
s
"
:
{
"
cause
"
:
"
AUTOFLAGGED
"
}})
history1
.
meta
[
2
].
update
({
"
func
"
:
"
flagBar
"
,
"
k
eyword
s
"
:
{
"
comment
"
:
"
I did it
"
}})
history1
.
meta
[
1
].
update
({
"
func
"
:
"
flagFoo
"
,
"
k
warg
s
"
:
{
"
cause
"
:
"
AUTOFLAGGED
"
}})
history1
.
meta
[
2
].
update
({
"
func
"
:
"
flagBar
"
,
"
k
warg
s
"
:
{
"
comment
"
:
"
I did it
"
}})
flags
.
history
[
"
var1
"
]
=
history1
history2
=
flags
.
history
[
"
var2
"
]
history2
.
meta
[
-
1
].
update
(
{
"
func
"
:
"
flagFoo
"
,
"
k
eyword
s
"
:
{
"
cause
"
:
"
BELOW_OR_ABOVE_MIN_MAX
"
}}
{
"
func
"
:
"
flagFoo
"
,
"
k
warg
s
"
:
{
"
cause
"
:
"
BELOW_OR_ABOVE_MIN_MAX
"
}}
)
flags
.
history
[
"
var2
"
]
=
history2
...
...
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