Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
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
4497109b
Commit
4497109b
authored
4 years ago
by
Bert Palm
🎇
Browse files
Options
Downloads
Patches
Plain Diff
fixed error message. do not show memory location. added flagForceFail()
parent
1f5bb065
No related branches found
No related tags found
2 merge requests
!193
Release 1.4
,
!188
Release 1.4
Pipeline
#5720
passed with stage
Stage: test
in 6 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
saqc/core/core.py
+1
-1
1 addition, 1 deletion
saqc/core/core.py
saqc/funcs/functions.py
+7
-0
7 additions, 0 deletions
saqc/funcs/functions.py
with
8 additions
and
1 deletion
saqc/core/core.py
+
1
−
1
View file @
4497109b
...
...
@@ -30,7 +30,7 @@ def _handleErrors(exc, func, field, policy):
if
func
.
lineno
is
not
None
and
func
.
expr
is
not
None
:
msg
+=
f
"
Config line
{
func
.
lineno
}
:
'
{
func
.
expr
}
'
,
"
else
:
msg
+=
f
"
Function:
'
{
func
.
func
}
'
, parameters:
'
{
func
.
kwargs
}
'
,
"
msg
+=
f
"
Function:
{
func
.
func
.
__name__
}
()
, parameters:
'
{
func
.
kwargs
}
'
,
"
msg
+=
f
"
Exception:
\n
{
type
(
exc
).
__name__
}
:
{
exc
}
"
if
policy
==
"
ignore
"
:
...
...
This diff is collapsed.
Click to expand it.
saqc/funcs/functions.py
+
7
−
0
View file @
4497109b
...
...
@@ -290,6 +290,13 @@ def flagDummy(data, field, flagger, **kwargs):
return
data
,
flagger
@register
def
flagForceFail
(
data
,
field
,
flagger
,
**
kwargs
):
"""
Raise a RuntimeError.
"""
raise
RuntimeError
(
"
Works as expected :D
"
)
return
data
,
flagger
@register
def
flagManual
(
data
,
field
,
flagger
,
mdata
,
mflag
:
Any
=
1
,
method
=
"
plain
"
,
**
kwargs
):
"""
Flag data by given manual data.
...
...
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